Module pom_elements.html.inline_text
Expand source code
from pom_elements import XPathElement
class Link(XPathElement):
"""Interact with <a> tags."""
tag = "a"
class Cite(XPathElement):
"""Interact with <cite> tags."""
tag = "cite"
class Code(XPathElement):
"""Interact with <code> tags."""
tag = "code"
class Highlight(XPathElement):
"""Interact with <mark> tags."""
tag = "mark"
class InlineQuote(XPathElement):
"""Interact with <q> tags."""
tag = "q"
class Span(XPathElement):
"""Interact with <span> tags."""
tag = "span"
class Subscript(XPathElement):
"""Interact with <sub> tags."""
tag = "sub"
class Superscript(XPathElement):
"""Interact with <sup> tags."""
tag = "sup"
Classes
class Cite (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with tags.
Expand source code
class Cite(XPathElement): """Interact with <cite> tags.""" tag = "cite"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class Code (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with
tags.Expand source code
class Code(XPathElement): """Interact with <code> tags.""" tag = "code"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class Highlight (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with tags.
Expand source code
class Highlight(XPathElement): """Interact with <mark> tags.""" tag = "mark"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class InlineQuote (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with
tags.
Expand source code
class InlineQuote(XPathElement): """Interact with <q> tags.""" tag = "q"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class Link (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with tags.
Expand source code
class Link(XPathElement): """Interact with <a> tags.""" tag = "a"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class Span (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with tags.
Expand source code
class Span(XPathElement): """Interact with <span> tags.""" tag = "span"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class Subscript (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with tags.
Expand source code
class Subscript(XPathElement): """Interact with <sub> tags.""" tag = "sub"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class Superscript (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with tags.
Expand source code
class Superscript(XPathElement): """Interact with <sup> tags.""" tag = "sup"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
var tag-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
var default_timeout-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
var locator : Tuple[selenium.webdriver.common.by.By, str]-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
var webdriver :-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
var xpath : str-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
def can_be_clicked(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
def click(self, timeout: Union[float, NoneType] = None)-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
def find(self, timeout: Union[float, NoneType] = None) -> selenium.webdriver.remote.webelement.WebElement-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
def get_all_attributes(self) -> dict-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
def get_attribute(self, name)-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
def get_property(self, value: str) -> Any-
Inherited from:
XPathElement.get_propertyGet the property of the element …
def is_displayed(self)-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
def is_invisible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
def is_visible(self, timeout: Union[int, NoneType] = None) -> bool-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …