Interface ComboBoxHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Combo box" form component. The Swing widget is a
JComboBox.
Reach this handle via ScreenHandle.comboBox().
-
Method Summary
Modifier and TypeMethodDescriptionassertSelectedItem(String expected) Assert that the currently selected item equals the expected value.Type free text into the editor.getItems()The items currently in the drop-down.The currently selected or typed value.selectIndex(int index) Select the item at the given index.selectItem(String item) Select the first item whosetoStringequals the given value.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getItems
-
getSelectedItem
The currently selected or typed value. For editable combos this returns the edit-field text. -
selectItem
Select the first item whosetoStringequals the given value. -
selectIndex
Select the item at the given index. -
enterText
Type free text into the editor. Requires an editable combo. -
assertSelectedItem
Assert that the currently selected item equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-