SearchDropdownUtils API Reference¶
The SearchDropdownUtils class provides utility methods for interacting with Appian's search dropdown components. These utilities help automate the process of selecting options from search-enabled dropdowns by label or partial label.
Import¶
Methods¶
selectSearchDropdownValueByLabelText¶
Selects a value from a search dropdown by matching the exact label text.
Syntax:
Parameters: -wait (WebDriverWait): Selenium WebDriverWait instance
- dropdown_label (str): The exact visible label of the search dropdown
- value (str): The value to select from the dropdown
Example:
selectSearchDropdownValueByPartialLabelText¶
Selects a value from a search dropdown by matching partial label text.
Syntax:
Parameters: -wait (WebDriverWait): Selenium WebDriverWait instance
- dropdown_label (str): Partial label text of the search dropdown
- value (str): The value to select from the dropdown
Example:
How it Works¶
- Locates the search dropdown by its label (exact or partial)
- Clicks the dropdown to activate the search input
- Enters the desired value
- Waits for the dropdown options to appear
- Selects the matching option from the dropdown
Error Handling¶
- Raises
RuntimeErrorif the dropdown or option is not found or not clickable