widgetastic_patternfly4.switch module¶
-
class
widgetastic_patternfly4.switch.
BaseSwitch
¶ Bases:
object
Represents the Patternfly Switch.
https://www.patternfly.org/v4/documentation/react/components/switch
-
CHECKBOX_LOCATOR
= './input'¶
-
LABEL_OFF
= "./span[contains(@class, 'pf-m-off')]"¶
-
LABEL_ON
= "./span[contains(@class, 'pf-m-on')]"¶
-
fill
(value)¶ Fills a Switch with the supplied value.
-
is_enabled
¶ Returns a boolean detailing if the switch is enabled.
-
label
¶ Returns the label of the Switch.
-
read
()¶ Returns a boolean detailing if the Switch is on (True) of off (False).
-
selected
¶ Returns a boolean detailing if the Switch is on (True) of off (False).
-
-
class
widgetastic_patternfly4.switch.
Switch
(parent, locator, logger=None)¶ Bases:
widgetastic_patternfly4.switch.BaseSwitch
,widgetastic.widget.base.GenericLocatorWidget
-
exception
widgetastic_patternfly4.switch.
SwitchDisabled
¶ Bases:
Exception