Single Select
- class pytest_splunk_addon_ui_smartx.components.controls.single_select.SingleSelect(browser, container, searchable=True, allow_new_values=False)[source]
Bases:
pytest_splunk_addon_ui_smartx.components.controls.base_control.BaseControl
Entity-Component: SingleSelect
A dropdown which can select only one value
- cancel_selected_value()[source]
- Cancels the currently selected value in the SingleSelect
- return
Bool whether or not canceling the selected item was successful, else raises a error
- get_list_count()[source]
- Gets the total count of the SingleSelect list
- return
Int the count of the options within the Single Select
- get_value()[source]
- Gets the selected value
- return
The selected value’s text, or returns false if unsuccessful
- list_of_values()[source]
- Gets the list of value from the Single Select
- returns
list of options avaialble within the single select
- search(value, open_dropdown=True)[source]
- search with the singleselect input
- param value
string value to search
- assert
Asserts whether or not the single select is seachable
- search_get_list(value)[source]
- search with the singleselect input and return the list
- param value
string value to search
- returns
list of values