widgetastic_patternfly4.formselect module¶
-
class
widgetastic_patternfly4.formselect.
BaseFormSelect
¶ Bases:
object
Represents the Patternfly FormSelect.
https://www.patternfly.org/v4/documentation/react/components/formselect
-
ALL_OPTIONS_LOCATOR
= './/option'¶
-
PARENT_OPTION_GROUP
= './parent::optgroup'¶
-
all_enabled_options
¶ Returns a list of all enabled options in the FormSelect.
Options might be disabled by disabled attr in their WebElement or in parent optgroup element (if it exists).
-
all_options
¶ Returns a list of all the options in the FormSelect.
-
fill
(value)¶ Select desired option in FormSelect.
Raises: FormSelectDisabled
– if FormSelect is disabledFormSelectOptionDisabled
– if option or entire optgroup is disabledFormSelectOptionNotFound
– if option not found
-
is_enabled
¶ Returns whether the FormSelect itself is enabled and therefore interactive.
-
is_valid
¶ Returns whether the FormSelect has valid option selected - not highlighted with red color and special icon.
-
read
()¶ Returns selected option.
-
-
class
widgetastic_patternfly4.formselect.
FormSelect
(parent, locator, logger=None)¶ Bases:
widgetastic_patternfly4.formselect.BaseFormSelect
,widgetastic.widget.base.GenericLocatorWidget
-
exception
widgetastic_patternfly4.formselect.
FormSelectDisabled
¶ Bases:
Exception
Raised if the FormSelect is Disabled.
-
exception
widgetastic_patternfly4.formselect.
FormSelectOptionDisabled
¶ Bases:
Exception
Raise if the specific option chosen is disabled.
-
exception
widgetastic_patternfly4.formselect.
FormSelectOptionNotFound
¶ Bases:
Exception
Raised if the specific form option is not found in the form select.