34 return self.
ctxctx.driver
40 return self.
ctxctx._drivers
43 element_finder = property
46 return self.
ctxctx._element_finder
48 @element_finder.setter
51 self.
ctxctx._element_finder = value
72 def find_element(self, locator, tag=None, required=True, parent=None):
93 return self.
find_elementfind_element(locator, required=
False)
is not None
97 return (element.is_enabled()
and
98 element.get_attribute(
'readonly')
is None)
101 element = self.
find_elementfind_element(locator, required=
False)
102 return element.is_displayed()
if element
else None
def __init__(self, ctx)
Base class exposing attributes from the common context.
def is_visible(self, locator)
def element_finder(self, value)
def find_element(self, locator, tag=None, required=True, parent=None)
Find element matching locator.
def find_elements(self, locator, tag=None, parent=None)
Find all elements matching locator.
def is_text_present(self, text)
def is_element_enabled(self, locator, tag=None)
def escape_xpath_value(value)