Automating Java applications
Pega Robotic Automation 19.1.30 and later provides limited support for JavaFX applications. Java versions 8 and 11 are supported.
Build 19.1.87 expands Java support by adding support for version 11 of the Java Runtime Environment (JRE) for the Standard Widget Toolkit (SWT) and JavaFX.
Support for Java Standard Widget Toolkit
Pega Robotic Automation 19.1.111 and later provides support for the following Java Standard Widget Toolkit (SWT) controls:
Group widget
Shell widget
Link widget
Slider widget
ExpandBar widget
Browser widget
Button widget
Label widget
List widget
Combo widget
Spinner
SxSyTree
Tabs
Table (Grid)
Text
Tree
Support for JavaFX
The following restrictions apply to JavaFX support:
- UI Connectors are not supported.
- JavaFX support is not verified for applications that mix JavaFX controls with Swing components.
The following table provides details on the specific support in Pega Robotic Automation 19.1.30 and later. A check mark indicates support for the feature. A blank space indicates no support for the feature.
Pega Robotic Automation | |||
19.1.30 to 19.1.38 | 19.1.39 and later | ||
Properties (All controls) | |||
Name { get } | ✔ | ✔ | |
Text { get & set }, TextBuffer { get } | ✔ | ✔ | |
Id { get } | ✔ | ✔ | |
Bounds { get } | ✔ | ✔ | |
ClientRectangle { get } | ✔ | ✔ | |
ScreenRectangle { get } | ✔ | ✔ | |
Top { get }, Bottom { get } | ✔ | ✔ | |
Left { get }, Right { get } | ✔ | ✔ | |
Width { get }, Height { get } | ✔ | ✔ | |
Visible { get & set } | ✔ | ✔ | |
Enabled { get & set } | ✔ | ✔ | |
Focused { get } | ✔ | ✔ | |
Value { get } | ✔ | ✔ | |
Bounds { set } |
| ||
Top { set } |
| ||
Left { set } |
| ||
Width { set } |
| ||
Height { set } | |||
Methods (All controls) | |||
Activate( ) | ✔ | ✔ | |
Focus( ) | ✔ | ✔ | |
PerformClick( ) | ✔ | ✔ | |
PerformClick(int x, int y) | ✔ | ✔ | |
Show( ) | ✔ | ✔ | |
Hide( ) | ✔ | ✔ | |
PerformDoubleClick( ) |
| ||
PerformDoubleClick(int x, int y ) | |||
PerformRightClick( ) |
| ||
PerformRightClick(int x, int y ) |
| ||
SendKeys(String keys) |
| ||
Events (All controls) | |||
Click, Clicking |
| ||
DoubleClick, DoubleClicking |
| ||
RightClick, RightClicking | |||
EnabledChanged |
| ||
GotFocus |
| ||
LostFocus |
| ||
KeyUp |
| ||
KeyDown |
| ||
KeyPress |
| ||
TextChanged | |||
VisibleChanged |
| ||
Hidden |
| ||
Shown |
| ||
MouseUp |
| ||
MouseDown |
| ||
Button, Menu Button, Toggle Button, and Hyperlink | |||
PerformClick( ) | ✔ | ✔ | |
PerformClickXY(int x, int y) | ✔ | ✔ | |
Text { get } | ✔ | ✔ | |
PerformSynchronousClick( ) |
| ||
Check Box and Radio Button | |||
PerformClick( ) | ✔ | ✔ | |
PerformClickXY(int x, int y) | ✔ | ✔ | |
Text { get } | ✔ | ✔ | |
AutoCheck { get } | |||
Checked { get and set } | |||
CheckState { get and set } | |||
ThreeState { get } | |||
CheckedChanged | |||
CheckStateChanged | |||
Combo Box | |||
Items { get } | ✔ | ✔ | |
SelectedIndex { get and set } | ✔ | ✔ | |
Count { get } | ✔ | ✔ | |
SelectedItem { get and set } | ✔ | ✔ | |
SelectedIndexChanged | ✔ | ✔ | |
Updated | |||
Label | |||
Text { get } | ✔ | ✔ | |
List View | |||
Count { get } | ✔ | ✔ | |
SelectedIndex { get and set } | ✔ | ✔ | |
Selected { set } | ✔ | ✔ | |
Items { get } | ✔ | ✔ | |
SelectedIndices { get } | ✔ | ✔ | |
MultiSelect { get } | ✔ | ✔ | |
EnsureVisible(int index) | ✔ | ✔ | |
PerformClick(int index) | ✔ | ✔ | |
PerformDoubleClick(int index) | |||
ItemsActivated | |||
Updated |
| ||
ItemClicked |
| ||
ItemDoubleClicked |
| ||
ItemSelected |
| ||
Tab Pane | |||
Tabs { get } | ✔ | ✔ | |
SelectedIndex { get and set } | ✔ | ✔ | |
SelectedIndexChanged | |||
Table View | |||
RowCount { get } | ✔ | ✔ | |
ColumnCount { get } | ✔ | ✔ | |
GetCellValue(int row, int column) | ✔ | ✔ | |
SelectCell(int row, int column) | ✔ | ✔ | |
SelectRow(int row, boolean selected) | ✔ | ✔ | |
EnsureVisible(int row, int column) | ✔ | ✔ | |
SelectedRow { get } | ✔ | ✔ | |
SelectedColumn { get } | ✔ | ✔ | |
GetColumnHeader(int column) | ✔ | ✔ | |
GetColumnIndexByHeader(String header) | ✔ | ✔ | |
ShowContextMenu( ) | ✔ | ✔ | |
SetCellValue(int row, int column, String value) |
| ||
ClickCell(int row, int column) | |||
DoubleClickCell(int row, int column) | |||
ShowContextMenu(int x, int y) | |||
GridCellClicked | |||
GridCellDoubleClicked |
| ||
GridCellSelected | |||
Embedded Check Box | |||
| ClickCell | ✔ | |
| GetCellValue |
| ✔ |
Embedded Combo Box | |||
| SetSelectedIndex | ✔ | |
| GetCellValue |
| ✔ |
| ClickCell | ✔ | |
| SetCellValue | ✔ | |
Embedded Hyperlink | |||
| ClickCell |
| ✔ |
Text Field | |||
Text { get and set } | ✔ | ✔ | |
AppendText(String text) | ✔ | ✔ | |
Clear( ) | ✔ | ✔ | |
IsPassword { get } | ✔ | ✔ | |
MaxLength { get and set } |
| ||
ReadOnly { get and set } |
| ||
TextLength { get } |
| ||
Append |
| ||
IsPassword { set } |
| ||
PasswordChar { get and set } |
| ||
Text | |||
Text { get } | ✔ | ✔ | |
Tree View | |||
SelectedNode { get } | |||
NodeText { get } | |||
NodeExpanded { get } | |||
NodeSelected { get } | |||
Collpase( ) | |||
Expand( ) | |||
EnsureVisible( ) | |||
PerformClick( ) | |||
PerformDoubleClick( ) | |||
PerformRightClick( ) | |||
ShowContextMenu( ) | |||
Nodes { get } | |||
SelectNode(NodeId id ) | |||
NodeClicked | |||
NodeDoubleClicked | |||
NodeSelected | |||
Web View | |||
ExecuteScript(String javaScript) | ✔ | ✔ | |
Source { get } | ✔ | ✔ | |
Url { get } | ✔ | ✔ |
Previous topic Automating applications that run on Internet Explorer Next topic Automating applications that run on Microsoft Edge (Chromium)