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

Module - Java Swing

Activities for Java Swing Apps

Class Button

Subset of functions and activities related to the accordion component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Click Sync (Java Swing Button)

Click a button synchronously


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

Sample Code:

await JavaApp.oPage.oButton.click();

Errors:

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


Click (Java Swing Button)

Click a button asynchronously


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

Sample Code:

await JavaApp.oPage.oButton.click();

Errors:

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


Class CheckBox

Subset of functions and activities related to the CheckBox component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Set Value (Java Swing CheckBox) Deprecated

Check or uncheck the checkbox


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

Input Parameters:

Name Type Attributes Description
value boolean Provide true to check, or false to uncheck

Sample Code:

await JavaApp.oPage.oCheckbox.set(true);

Errors:

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


Select/Deselect Checkbox (Java Swing Check Box)

Check or uncheck the checkbox


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

Input Parameters:

Name Type Attributes Description
value boolean Provide true to check, or false to uncheck

Sample Code:

await JavaApp.oPage.oCheckbox.select(true);

Errors:

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


Get State (Java Swing CheckBox)

Retrieve the state of the check box ("true" if checked, "false" if unchecked)


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

Output Parameters:

Name Type Description
state boolean Returns the state of the check box

Sample Code:

await JavaApp.oPage.oCheckbox.get();

Errors:

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


Class ComboBox

Subset of functions and activities related to the ComboBox component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Set Item by Index Sync (Java Swing ComboBox)

Set the required combo box item by index synchronously


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

Input Parameters:

Name Type Attributes Description
index number Provide item index for combo box (index starts at 0)

Sample Code:

await JavaApp.oPage.oComboBox.setIndexSync(value);

Errors:

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


Get Selected Index (Java Swing ComboBox)

Retrieve the index for the selected combo box item


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

Output Parameters:

Name Type Description
index number Returns the index for the selected combo box item

Sample Code:

await JavaApp.oPage.oComboBox.get();

Errors:

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


Set Item by Index (Java Swing ComboBox)

Asynchronously set the combo box item by index


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

Input Parameters:

Name Type Attributes Description
index number Provide item index for combo box (index starts at 0)

Sample Code:

await JavaApp.oPage.oComboBox.setIndex(value);

Errors:

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


Set Value (Java Swing ComboBox)

Set the value of the combo box item to be selected


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

Input Parameters:

Name Type Attributes Description
value string Provide the combo box item value

Sample Code:

await JavaApp.oPage.oComboBox.set(value);

Errors:

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


Class Label

Subset of functions and activities related to the Label component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Mouse Click (Java Swing Label)

Click on a label


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

Sample Code:

await JavaApp.oPage.oLabel.clickMouse();

Errors:

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


Get Label (Java Swing Label)

Retrieve the value for the label control


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

Output Parameters:

Name Type Description
result string Returns the label value

Sample Code:

await JavaApp.oPage.oLabel.get();

Errors:

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


Class List

Subset of functions and activities related to the List component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Set Item by Index (Java Swing List) Deprecated

Set a selected item on a list by index


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

Input Parameters:

Name Type Attributes Description
index number List item index to be set

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance


Select Item by Index (Java Swing List)

Select an item in a list by index


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

Input Parameters:

Name Type Attributes Description
index number List item index to be set

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance


Get Selected Index (Java Swing List)

Retrieve the index of the selected list item


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

Output Parameters:

Name Type Description
index number Returns the index for the selected list item

Sample Code:

await JavaApp.oPage.oList.get();

Errors:

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


Class ListItem

Subset of functions and activities related to the List Item component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Select List Item (Java Swing List Item)

Select the list item control


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

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance


Class RadioButton

Subset of functions and activities related to the Radio Button component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Select Radio Button (Java Swing Radio Button)

Select the radio button


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

Input Parameters:

Name Type Attributes Description
value boolean Provide "true" to select the radio button

Sample Code:

await JavaApp.oPage.oRadioButton.select(true);

Errors:

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


Get State (Java Swing Radio Button)

Retrieve the state of the radio button ("true" if selected, "false" if not selected)


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

Output Parameters:

Name Type Description
state boolean Returns the state of the radio button.

Sample Code:

await JavaApp.oPage.oRadioButton.get();

Errors:

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


Class TabbedPane

Subset of functions and activities related to the tabbed pane component
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Set Item by Index (Java Swing TabbedPane) Deprecated

Set the item in the tabbed pane by index


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

Input Parameters:

Name Type Attributes Description
index number Index of the item to be selected (index starts at 0)

Sample Code:

await JavaApp.oPage.oTabbedPane.set(1);

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance.


Select Item by Index (Java Swing TabbedPane)

Select the item in the tabbed pane by index


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

Input Parameters:

Name Type Attributes Description
index number Index of the item to be selected (index starts at 0)

Sample Code:

await JavaApp.oPage.oTabbedPane.select(1);

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance.


Get Selected Index (Java Swing TabbedPane)

Retrieve the index for the selected tabbed pane


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

Output Parameters:

Name Type Description
index number Returns the index for the selected tabbed pane

Sample Code:

await JavaApp.oPage.oTabbedPane.get();

Errors:

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


Class TableCell

Subset of functions and activities related to the table cell component
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Set Value (Java Swing TableCell)

Set the value within a table cell


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

Input Parameters:

Name Type Attributes Description
text string Table cell value to be set

Output Parameters:

Name Type Description
res any res

Sample Code:

await JavaApp.oPage.otableCell.set("abc");

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance


Select Table Cell (Java Swing TableCell)

Select the table cell


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

Output Parameters:

Name Type Description
res any res

Sample Code:

await JavaApp.oPage.otableCell.select();

Errors:

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


Double-Click (Java Swing TableCell)

Double-click on a table cell control


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

Output Parameters:

Name Type Description
res any res

Sample Code:

await JavaApp.oPage.oTableCell.clickDouble();

Errors:

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


Class TextField

Subset of functions and activities related to the text field component.
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Set Element (Java Swing TextField)

Set the text in a text field


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

Input Parameters:

Name Type Attributes Description
text string Value to be set

Errors:

Error Class Package Description
Timeout irpa_core Timeout reached waiting element appearance


Get Element (Java Swing TextField)

Retrieve the text from a text field


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

Output Parameters:

Name Type Description
result string Returns the value of a text field

Sample Code:

await JavaApp.oPage.oTextBox.get();

Errors:

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


Class TreeNode

Subset of functions and activities related to the TreeNode component
Extends Technologies of the class
irpa_java.JavaCore.JavaElement JavaSwing


Activities :

Select Tree Node (Java Swing TreeNode)

Select the tree node


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

Sample Code:

await JavaApp.oPage.oTreeNode.select();

Errors:

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


Expand Tree Node (Java Swing TreeNode)

Expand the tree node.


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

Sample Code:

await JavaApp.oPage.oTreeNode.expand();

Errors:

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


Collapse Tree Node (Java Swing TreeNode)

Collapse the tree node.


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

Sample Code:

await JavaApp.oPage.oTreeNode.collapse();

Errors:

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


Double-Click (Java Swing TreeNode)

Double-click on a tree node control


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

Sample Code:

await JavaApp.oPage.oTreeNode.clickDouble();

Errors:

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