Supported JavaFX Controls

Applies to TestLeft 4.72, last modified on December 21, 2020

TestLeft can simulate user actions and access internal properties and methods of various JavaFX controls. You can also command your tests to recognize your custom controls as JavaFX controls to simulate user actions against them.

About Supported JavaFX Controls

TestLeft can simulate user actions against any JavaFX control via graphical user interface. In addition, TestLeft provides extended support for the most of JavaFX controls.

In your tests, you can cast these controls to appropriate interfaces that extend the control’s functionality with a number of additional methods and properties. Use those methods and properties to simulate various user actions over the controls, for example, select individual items or retrieve item text.

Supported Classes

TestLeft recognizes controls by their class name. Below is a full list of the JavaFX controls that TestLeft supports.

Controls Library Classes
Accordion JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.Accordion
Button JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.Button
Check box JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.CheckBox
Choice box JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ChoiceBox
Color picker JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ColorPicker
Combo box JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ComboBox
Hyper link JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.Hyperlink
List view JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ListView
Menu bar JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.MenuBar
Menu button JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.MenuButton
Password field JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.PasswordField
Radio button JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.RadioButton
Scroll bar JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ScrollBar
Scroll pane JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ScrollPane
Slider JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.Slider
Tab pane JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.TabPane
Table view JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.TableView
Text area JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.TextArea
Text field JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.TextField
Toggle button JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.ToggleButton
Tree view JavaFX SDK ver. 2.2.7 - 2.2.45, 8, 9 javafx.scene.control.TreeView

Recognizing Custom Controls

To command TestLeft to recognize your custom controls as JavaFX controls, cast your control to the interface of the appropriate type.

If your control does not fit the type of the control, for which the interface provides support, it may improperly respond to commands that TestLeft will send, and simulating user actions against your control may cause errors.

See Also

Supported Controls

Highlight search results