multi_select¶
MultiSelect(browser, container)
¶
Bases: BaseControl
Entity-Component: Multiselect A dropdown which can select more than one values
Parameters:
Name | Type | Description | Default |
---|---|---|---|
browser |
The selenium webdriver |
required | |
container |
The locator of the container where the control is located in |
required |
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
clear_text()
¶
Clears the search box value in the multiselect field
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
67 68 69 70 71 |
|
deselect(value)
¶
Remove an item from selected list. :param value: the value to deselect :return: Bool returns true if deselect was successful, else raises an exception
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
125 126 127 128 129 130 131 132 133 134 135 136 137 |
|
deselect_all()
¶
Remove all items from selected list.
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
139 140 141 142 143 144 |
|
get_list_count()
¶
Gets the total count of the Multiselect list
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
173 174 175 176 177 |
|
get_values()
¶
get list selected values :return: List of values selected within the multi-select
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
146 147 148 149 150 151 |
|
list_of_values()
¶
Get list of possible values to select from dropdown :return: List of options within the multi-select dropdown
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
|
search(value)
¶
search with the multiselect input :param value: string value to search
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
60 61 62 63 64 65 |
|
search_get_list(value)
¶
search with the multiselect input and return the list :param value: string value to search :return: list of values
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
73 74 75 76 77 78 79 80 81 82 83 |
|
select(value)
¶
select a single value :param value: the value to select :return: Bool returns true if selection was successful, else raises an exception
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
wait_for_search_list()
¶
Wait for Multiselect search to populate
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
207 208 209 210 211 212 213 214 215 216 217 |
|
wait_for_values()
¶
Wait for dynamic values to load in Mulitple select
Source code in pytest_splunk_addon_ui_smartx/components/controls/multi_select.py
197 198 199 200 201 202 203 204 205 |
|