DropdownMenu Methods
OpenDropdownList
Opens the dropdown list and returns a rectangle for the list (based on rectangle with changes after expanding dropdown list).
Syntax:
Exceptions:
Exception | Condition |
When the dropdown could not be found on the screen. | |
When the dropdown could not be opened after the configured amount of retries. |
SelectValueFromSubmenu
Opens the dropdown menu, searches the first value from selections in the list and selects it to open the next submenu. Then the next value is found in the submenu and so on. If one of the texts cannot be found, throws a TestStepAbortedException.
Syntax:
Parameters:
Parameter | Description |
selections | Type: String[] The text values of the submenus and the entry that shall be selected from the dropdown menu. E.g. "File", "New", "Project" |
Exceptions:
Exception | Condition |
When the dropdown could not be found on the screen. | |
When the dropdown could not be opened after the configured amount of retries. | |
When the text value cannot be found in the dropdown list. |
Last updated