Module pom_elements.html.table_content
Expand source code
from pom_elements import XPathElement
class Caption(XPathElement):
"""Interact with the <caption> html elment."""
tag = "caption"
class Col(XPathElement):
"""Interact with the <col> html elment."""
tag = "col"
class ColGroup(XPathElement):
"""Interact with the <colgroup> html elment."""
tag = "colgroup"
class Table(XPathElement):
"""Interact with the <table> html elment."""
tag = "table"
class TableData(XPathElement):
"""Interact with the <td> html elment."""
tag = "td"
class TableFooter(XPathElement):
"""Interact with the <tfoot> html elment."""
tag = "tfoot"
class TableHead(XPathElement):
"""Interact with the <thead> html elment."""
tag = "thead"
class TableHeader(XPathElement):
"""Interact with the <th> html elment."""
tag = "th"
class TableRow(XPathElement):
"""Interact with the <tr> html elment."""
tag = "tr"
Classes
class Caption (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with the
html elment. Expand source code
class Caption(XPathElement): """Interact with the <caption> html elment.""" tag = "caption"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 Col (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with the
html elment. Expand source code
class Col(XPathElement): """Interact with the <col> html elment.""" tag = "col"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 ColGroup (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with the
html elment. Expand source code
class ColGroup(XPathElement): """Interact with the <colgroup> html elment.""" tag = "colgroup"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 Table (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) -
Interact with the
html elment.
Expand source code
class Table(XPathElement): """Interact with the <table> html elment.""" tag = "table"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 TableData (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) Interact with the
html elment. Expand source code
class TableData(XPathElement): """Interact with the <td> html elment.""" tag = "td"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 …
Interact with the
html elment.Expand source code
class TableFooter(XPathElement): """Interact with the <tfoot> html elment.""" tag = "tfoot"Ancestors
- XPathElement
- BaseElement
- abc.ABC
Class variables
-
Inherited from:
XPathElement.tagtag class attribute is the xpath html tag (i.e. div, span, ul).
Instance variables
-
Inherited from:
XPathElement.default_timeoutGet the default timeout.
-
Inherited from:
XPathElement.locatorReturn the Xpath Locator element.
-
Inherited from:
XPathElement.webdriverGet the Element's Selenium webdriver instance …
-
Inherited from:
XPathElement.xpathGet the xpath value as a string.
Methods
-
Inherited from:
XPathElement.can_be_clickedReturn true if the webelement can be clicked in the time (seconds) provided …
-
Inherited from:
XPathElement.clickClick the web element if it is available to be clicked.
-
Inherited from:
XPathElement.findReturn the Selenium WebElement in the provided timeout or raise an error …
-
Inherited from:
XPathElement.get_all_attributesReturn a dictionary containing all of the attributes of an element.
-
Inherited from:
XPathElement.get_attributeReturns the attribute of the name provided.
-
Inherited from:
XPathElement.get_propertyGet the property of the element …
-
Inherited from:
XPathElement.is_displayedReturns true if the Element is displayed else false.
-
Inherited from:
XPathElement.is_invisibleReturn true if the webelement is invisible on the page within the time (seconds) provided …
-
Inherited from:
XPathElement.is_visibleReturn true if the webelement is visible on the page in the time (seconds) provided …
class TableHead (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) Interact with the html elment.
Expand source code
class TableHead(XPathElement): """Interact with the <thead> html elment.""" tag = "thead"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 TableHeader (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) Interact with the
html elment. Expand source code
class TableHeader(XPathElement): """Interact with the <th> html elment.""" tag = "th"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 TableRow (webdriver:= None, timeout: int = 5, xpath: str = '', **kwargs) Interact with the
html elment. Expand source code
class TableRow(XPathElement): """Interact with the <tr> html elment.""" tag = "tr"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 …