widgetastic_patternfly4.button module¶
Bases:
object
Returns a boolean detailing if the button is active.
Returns a boolean detailing if the button is disabled.
Returns the string of the button.
Returns the title of the button as a string.
Bases:
widgetastic_patternfly4.button.BaseButton
,widgetastic.widget.base.Widget
,widgetastic.widget.base.ClickableMixin
A Patternfly button
You can match by text, partial text or by attributes, you can also add the patternfly classes into the matching.
Button("Text of button (unless it is an input ...)") Button("contains", "Text of button (unless it is an input ...)") Button(title="Show xyz") # And such Button("Add", classes=[Button.PRIMARY]) Button(locator=".//xpath") assert button.active assert not button.disabled
ParametrizedString
modified to return instances ofsmartloc.Locator