widgetastic_patternfly4.tabs module

class widgetastic_patternfly4.tabs.Tab(parent, logger=None, **kwargs)

Bases: widgetastic.widget.base.View

Represents 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

ParametrizedString modified to return instances of smartloc.Locator

TAB_LOCATOR

ParametrizedString modified to return instances of smartloc.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.