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_placeholder_value()[source]

get placeholder value from the single select

get_single_value()[source]

Return one value from Single Select

get_value()[source]
Gets the selected value
return

The selected value’s text, or returns false if unsuccessful

is_editable()[source]

Returns True if the Textbox is editable, False otherwise

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

select(value, open_dropdown=True)[source]
Selects the value within the select dropdown
param value

the value to select

param open_dropdown

Whether or not the dropdown should be opened

return

Bool if successful in selection, else raises an error

wait_for_search_list()[source]

Wait for SingleSelect search to populate

wait_for_values()[source]

Wait for dynamic values to load in SingleSelect