cfme.web_ui.multibox module¶
-
class
cfme.web_ui.multibox.
MultiBoxSelect
(unselected, selected, to_unselected, to_selected, remove_all=None, sync=None, async=None)[source]¶ Bases:
cfme.utils.pretty.Pretty
Common UI element for selecting multiple items.
Presence in eg. Control/Explorer/New Policy Profile (for selecting policies)
Parameters: - unselected – Locator for the left (unselected) list of items.
- selected – Locator for the right (selected) list of items.
- to_unselected – Locator for a button which moves items from right to left (unselecting)
- to_selected – Locator for a button which moves items from left to right (selecting)
- remove_all – If present, locator for a button which unselects all items (Default None)
-
add
(*values, **kwargs)[source]¶ Mark items for selection and then clicks the button to select them.
Parameters: *values – Values to select - Keywords:
- flush: By using flush keyword, the selected items list is flushed prior to selecting
- new ones
Returns:
bool
with success.
-
all_selected
¶
-
classmethod
categorize
(values, sync_l, async_l, dont_care_l)[source]¶ Does categorization of values based on their Sync/Async status.
Parameters: - values – Values to be categorized.
- sync_l – List that will be used for appending the Sync values.
- async_l – List that will be used for appending the Async values.
- dont_care_l – List that will be used for appending all the other values.
-
classmethod
default
()[source]¶ The most common type of the MultiBoxSelect
Returns:
MultiBoxSelect
instance
-
pretty_attrs
= ['unselected', 'selected']¶
-
class
cfme.web_ui.multibox.
SelectItem
(sync, value, text)¶ Bases:
tuple
-
__getnewargs__
()¶ Return self as a plain tuple. Used by copy and pickle.
-
__getstate__
()¶ Exclude the OrderedDict from pickling
-
__repr__
()¶ Return a nicely formatted representation string
-
sync
¶ Alias for field number 0
-
text
¶ Alias for field number 2
-
value
¶ Alias for field number 1
-