SAP Help Home SAP Intelligent RPA Help Portal SAP Intelligent RPA Community

Module - Java Core

Activities for Java Element in Java apps

Class JavaElement

Subset of functions and activities related to the Java Element component
Extends Technologies of the class
irpa_core.core.Element JavaAutomation


Activities :

Double-Click (Java Element)

Double click on a Java element


Technical Name Type Minimal Agent Version
clickDouble asynchronous WIN-3.24 (WIN for Windows)

Sample Code:

await JavaApp.oPage.oJavaElement.clickDouble();

Errors:

Error Class Package Description
Timeout irpa_core Execution timeout while waiting for the element.


Keystroke (Java Element)

Strike a key on a Java element.


Technical Name Type Minimal Agent Version
keyStroke asynchronous WIN-3.24 (WIN for Windows)

Input Parameters:

Name Type Attributes Description
command irpa_java.enums.Key Keystroke Key
timer number optional Delay after key sequence (default is 100 ms).

Sample Code:

await JavaApp.oPage.oJavaElement.keyStroke(irpa_java.enums.Key.Enter);

Errors:

Error Class Package Description
Timeout irpa_core Execution timeout while waiting for the element.


Highlight (Java Element)

Highlight a Java element.


Technical Name Type Minimal Agent Version
highlight asynchronous WIN-3.24 (WIN for Windows)

Input Parameters:

Name Type Attributes Description
timer number optional Delay after highlight is removed (default is 1000 ms).

Sample Code:

await JavaApp.oPage.oJavaElement.highlight();

Errors:

Error Class Package Description
Timeout irpa_core Execution timeout while waiting for the element.


Mouse Click (Java Element)

Click on a Java element


Technical Name Type Minimal Agent Version
clickMouse asynchronous WIN-3.24 (WIN for Windows)

Sample Code:

await JavaApp.oPage.oJavaElement.clickMouse();

Errors:

Error Class Package Description
Timeout irpa_core Execution timeout while waiting for the element.