widgetastic_patternfly4.card module

class widgetastic_patternfly4.card.BaseCard

Bases: object

class widgetastic_patternfly4.card.Card(parent, locator=None, logger=None)

Bases: widgetastic_patternfly4.card.BaseCard, widgetastic.widget.base.GenericLocatorWidget

ROOT

ParametrizedString modified to return instances of smartloc.Locator

class widgetastic_patternfly4.card.CardCheckBox(parent, name=None, id=None, locator=None, logger=None)

Bases: widgetastic.widget.checkbox.Checkbox

ROOT = ".//input[@class='pf-c-check__input']"
class widgetastic_patternfly4.card.CardForCardGroup(parent, locator=None, logger=None, **kwargs)

Bases: widgetastic.widget.base.ParametrizedView

PARAMETERS = ('position',)
ROOT

ParametrizedString modified to return instances of smartloc.Locator

classmethod all(browser)

Method that returns tuples of parameters that correspond to PARAMETERS attribute.

It is required for proper functionality of read() so it knows the exact instances of the view.

Returns:An iterable that contains tuples. Values in the tuples must map exactly to the keys in the PARAMETERS class attribute.
class widgetastic_patternfly4.card.CardGroup(parent, locator=None, logger=None, **kwargs)

Bases: widgetastic.widget.base.GenericLocatorWidget, widgetastic.widget.base.View

cards

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.