widgetastic_patternfly4.tabs module¶
-
class
widgetastic_patternfly4.tabs.Tab(parent, logger=None, **kwargs)¶ Bases:
widgetastic.widget.base.ViewRepresents the Patternfly Tab widget.
Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.
https://www.patternfly.org/v4/documentation/react/components/tabs
-
ROOT¶ ParametrizedStringmodified to return instances ofsmartloc.Locator
-
TAB_LOCATOR¶ ParametrizedStringmodified to return instances ofsmartloc.Locator
-
TAB_NAME= None¶
-
child_widget_accessed(widget)¶ This hook is called when a child widget of current view is accessed.
One of useful examples is below. it allows us to switch between frames.
Parameters: widget – The widget being accessed or ParametrizedViewRequest.
-
click()¶ Clicks the tab.
-
is_active()¶ Returns a boolean detailing of the tab is active.
-
is_displayed¶ Returns a boolean detailing of the tab is displayed.
-
select()¶ Selects the tab (checks if active already first).
-
tab_name¶ Returns the tab name as a string.
-