Skip to main content

Java Desktop application

Java Desktop application

Introduction

This sample demonstrates basic actions performed on a Java desktop application - either Swing one or JavaFx one.

Prerequisites

to run the Automation process (AP), the node should have Capabilities specified in the AP Details tab. Capabilities for Swing Desktop: AP_RUN, JAVA

repo id: eu.ibagroup.samples.ap:easy-rpa-login-ap:jar:full:<easyRPA version>

module class: eu.ibagroup.easyrpa.ap.JavaLoginDemoAp

configuration params:

keydefault valuerequireddescription
app.swing.bucketdatanoS3 bucket where the jar is
app.swing.pathjava_sample/swing-application-5.4.0.0.jarno

the s3 path to jar file, from where it will be downloaded

(it also can be downloaded from oracle samples swing-application-5.4.0.0.jar)

app.fx.pathjava_sample/loginfx.jarno

the s3 path to jar file, from where it will be downloaded

app.typeswingno

type of Java Desktop application to run (swing or fx)

Included Steps

The bot types in bob as username and secret as password and clicks Login

Swing application:

JavaFx application:

After successful login the greeting popup appears and the bot clicks OK

Swing application:

JavaFx application: