widgetastic_patternfly4.contextselector module¶
-
class
widgetastic_patternfly4.contextselector.BaseContextSelector¶ Bases:
object-
ITEMS_LOCATOR= ".//ul[@class='pf-c-context-selector__menu-list']/li"¶
-
ITEM_LOCATOR= ".//*[contains(@class, 'pf-c-context-selector__menu-list-item') and normalize-space(.)={}]"¶
-
SEARCH_BUTTON_LOCATOR= ".//button[contains(@id, 'pf-context-selector-search-button')]"¶
-
SEARCH_INPUT_LOCATOR= ".//input[@type='search']"¶
-
item_select(item, use_search=False)¶ Opens the Context Selector and selects the desired item.
Parameters: - item – Item to be selected
- use_search – whether to search for item before selecting it
-
-
class
widgetastic_patternfly4.contextselector.ContextSelector(parent, text=None, locator=None, logger=None)¶ Bases:
widgetastic_patternfly4.contextselector.BaseContextSelector,widgetastic_patternfly4.select.Select