Interface DropdownListHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Drop-down list" form component. The Swing widget is a non-editable
JComboBox.
Reach this handle via ScreenHandle.dropdownList().
-
Method Summary
Modifier and TypeMethodDescriptionassertSelectedItem(String expected) Assert that the currently selected item equals the expected value.getItems()The items currently in the drop-down.The currently selected item.selectIndex(int index) Select the item at the given index.selectItem(String item) Select the first item whose label equals the given value.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getItems
-
getSelectedItem
The currently selected item. -
selectItem
Select the first item whose label equals the given value. -
selectIndex
Select the item at the given index. -
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
-