|
| def | __init__ (self, ctx) |
| | Base class exposing attributes from the common context. More...
|
| |
| def | find_element (self, locator, tag=None, required=True, parent=None) |
| | Find element matching locator. More...
|
| |
| def | find_elements (self, locator, tag=None, parent=None) |
| | Find all elements matching locator. More...
|
| |
| def | is_element_enabled (self, locator, tag=None) |
| |
| def | is_text_present (self, text) |
| |
| def | is_visible (self, locator) |
| |
Definition at line 20 of file context.py.
◆ __init__()
| def SeleniumLibrary.base.context.ContextAware.__init__ |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
◆ driver()
| def SeleniumLibrary.base.context.ContextAware.driver |
( |
|
self | ) |
|
|
private |
◆ drivers()
| def SeleniumLibrary.base.context.ContextAware.drivers |
( |
|
self | ) |
|
|
private |
◆ element_finder() [1/2]
| def SeleniumLibrary.base.context.ContextAware.element_finder |
( |
|
self | ) |
|
|
private |
◆ element_finder() [2/2]
| def SeleniumLibrary.base.context.ContextAware.element_finder |
( |
|
self, |
|
|
|
value |
|
) |
| |
|
private |
◆ find_element()
| def SeleniumLibrary.base.context.ContextAware.find_element |
( |
|
self, |
|
|
|
locator, |
|
|
|
tag = None, |
|
|
|
required = True, |
|
|
|
parent = None |
|
) |
| |
Find element matching locator.
:param locator: Locator to use when searching the element.
See library documentation for the supported locator syntax.
:type locator: str or selenium.webdriver.remote.webelement.WebElement
:param tag: Limit searching only to these elements.
:type tag: str
:param required: Raise `ElementNotFound` if element not found when
true, return `None` otherwise.
:type required: True or False
:param parent: Optional parent `WebElememt` to search child elements
from. By default search starts from the root using `WebDriver`.
:type parent: selenium.webdriver.remote.webelement.WebElement
:return: Found `WebElement` or `None` if element not found and
`required` is false.
:rtype: selenium.webdriver.remote.webelement.WebElement
:raises SeleniumLibrary.errors.ElementNotFound: If element not found
and `required` is true.
Definition at line 72 of file context.py.
◆ find_elements()
| def SeleniumLibrary.base.context.ContextAware.find_elements |
( |
|
self, |
|
|
|
locator, |
|
|
|
tag = None, |
|
|
|
parent = None |
|
) |
| |
Find all elements matching locator.
:param locator: Locator to use when searching the element.
See library documentation for the supported locator syntax.
:type locator: str or selenium.webdriver.remote.webelement.WebElement
:param tag: Limit searching only to these elements.
:type tag: str
:param parent: Optional parent `WebElememt` to search child elements
from. By default search starts from the root using `WebDriver`.
:type parent: selenium.webdriver.remote.webelement.WebElement
:return: list of found `WebElement` or empty if elements are not found.
:rtype: list[selenium.webdriver.remote.webelement.WebElement]
Definition at line 88 of file context.py.
◆ is_element_enabled()
| def SeleniumLibrary.base.context.ContextAware.is_element_enabled |
( |
|
self, |
|
|
|
locator, |
|
|
|
tag = None |
|
) |
| |
◆ is_text_present()
| def SeleniumLibrary.base.context.ContextAware.is_text_present |
( |
|
self, |
|
|
|
text |
|
) |
| |
◆ is_visible()
| def SeleniumLibrary.base.context.ContextAware.is_visible |
( |
|
self, |
|
|
|
locator |
|
) |
| |
◆ ctx
| SeleniumLibrary.base.context.ContextAware.ctx |
◆ driver
| SeleniumLibrary.base.context.ContextAware.driver = property |
|
static |
◆ drivers
| SeleniumLibrary.base.context.ContextAware.drivers = property |
|
static |
◆ element_finder
| SeleniumLibrary.base.context.ContextAware.element_finder = property |
|
static |
The documentation for this class was generated from the following file: