widgetastic_patternfly4.modal module¶
-
class
widgetastic_patternfly4.modal.
BaseModal
¶ Bases:
object
Represents the Patternfly Modal.
https://www.patternfly.org/v4/documentation/react/components/modal
-
BODY
= ".//div[contains(@class, 'pf-c-modal-box__body')]"¶
-
CLOSE
= ".//button[@aria-label='Close']"¶
-
FOOTER
= ".//*[contains(@class, 'pf-c-modal-box__footer')]/child::node()"¶
-
FOOTER_ITEM
= ".//*[contains(@class, 'pf-c-modal-box__footer')]/button[normalize-space(.)={}]"¶
-
TITLE
= ".//h1[contains(@class, 'pf-c-title') or contains(@class, 'pf-c-modal-box__title')]"¶
-
body
¶ Get WebElement of modal body.
-
close
()¶ Close modal window.
Returns a WebElement for given item name in modal footer.
Returns a list of strings of all items in modal footer.
-
title
¶ Get title of modal window.
-
-
class
widgetastic_patternfly4.modal.
Modal
(parent, locator=None, logger=None, **kwargs)¶ Bases:
widgetastic_patternfly4.modal.BaseModal
,widgetastic.widget.base.View
-
ROOT
¶ ParametrizedString
modified to return instances ofsmartloc.Locator
-
-
exception
widgetastic_patternfly4.modal.
ModalItemNotFound
¶ Bases:
Exception