widgetastic_patternfly4.popover module¶
-
class
widgetastic_patternfly4.popover.BasePopover¶ Bases:
objectRepresents a popover. https://www.patternfly.org/v4/components/popover/
For the popover to work, the base view should include a property popover = Popover() As there is supposed to only be one popover active at a time, this property should work, interacting with the active popover.
-
BODY= './/div[contains(@class, "pf-c-popover__body")]'¶
-
CLOSE= ".//button[@aria-label='Close']"¶
-
FOOTER= ".//footer[contains(@class, 'pf-c-popover__footer')]"¶
-
TITLE= './/*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6\n and contains(@class, "pf-c-title")]'¶
-
body¶ Returns the text of the body of the popover as a string.
-
close()¶ Close popover window.
Returns the text of the body of the popover as a string.
-
read()¶ Returns the text of the body of the popover as a string.
-
title¶ Returns the title text of the popover as a string.
-
-
class
widgetastic_patternfly4.popover.Popover(parent, locator=None, logger=None)¶ Bases:
widgetastic_patternfly4.popover.BasePopover,widgetastic.widget.base.Widget-
DEFAULT_LOCATOR= ".//div[contains(@role, 'dialog') and contains(@class, 'pf-c-popover')]"¶
-
ROOT¶ ParametrizedStringmodified to return instances ofsmartloc.Locator
-