Robot Framework SeleniumLibrary
SeleniumLibrary.locators.elementfinder.ElementFinder Class Reference
Inheritance diagram for SeleniumLibrary.locators.elementfinder.ElementFinder:
SeleniumLibrary.base.context.ContextAware

Public Member Functions

def __init__ (self, ctx)
 Base class exposing attributes from the common context. More...
 
def find (self, locator, tag=None, first_only=True, required=True, parent=None)
 
def register (self, strategy_name, strategy_keyword, persist=False)
 
def unregister (self, strategy_name)
 
- Public Member Functions inherited from SeleniumLibrary.base.context.ContextAware
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)
 

Private Member Functions

def _disallow_webelement_parent (self, element)
 
def _element_matches (self, element, tag, constraints)
 
def _filter_elements (self, elements, tag, constraints)
 
def _find_by_class_name (self, criteria, tag, constraints, parent)
 
def _find_by_css_selector (self, criteria, tag, constraints, parent)
 
def _find_by_default (self, criteria, tag, constraints, parent)
 
def _find_by_dom (self, criteria, tag, constraints, parent)
 
def _find_by_id (self, criteria, tag, constraints, parent)
 
def _find_by_identifier (self, criteria, tag, constraints, parent)
 
def _find_by_jquery_selector (self, criteria, tag, constraints, parent)
 
def _find_by_link_text (self, criteria, tag, constraints, parent)
 
def _find_by_name (self, criteria, tag, constraints, parent)
 
def _find_by_partial_link_text (self, criteria, tag, constraints, parent)
 
def _find_by_sc_locator (self, criteria, tag, constraints, parent)
 
def _find_by_tag_name (self, criteria, tag, constraints, parent)
 
def _find_by_xpath (self, criteria, tag, constraints, parent)
 
def _get_attrs_with_url (self, key_attrs, criteria)
 
def _get_base_url (self)
 
def _get_locator_separator_index (self, locator)
 
def _get_tag_and_constraints (self, tag)
 
def _get_xpath_constraint (self, name, value)
 
def _get_xpath_constraints (self, constraints)
 
def _is_webelement (self, element)
 
def _normalize (self, elements)
 
def _parse_locator (self, locator)
 

Private Attributes

 _default_strategies
 
 _key_attrs
 
 _strategies
 

Additional Inherited Members

- Public Attributes inherited from SeleniumLibrary.base.context.ContextAware
 ctx
 
- Properties inherited from SeleniumLibrary.base.context.ContextAware
 driver = property
 
 drivers = property
 
 element_finder = property
 

Detailed Description

Definition at line 28 of file elementfinder.py.

Constructor & Destructor Documentation

◆ __init__()

def SeleniumLibrary.locators.elementfinder.ElementFinder.__init__ (   self,
  ctx 
)

Base class exposing attributes from the common context.

    :param ctx: The library itself as a context object.
    :type ctx: SeleniumLibrary.SeleniumLibrary

Reimplemented from SeleniumLibrary.base.context.ContextAware.

Definition at line 30 of file elementfinder.py.

Member Function Documentation

◆ _disallow_webelement_parent()

def SeleniumLibrary.locators.elementfinder.ElementFinder._disallow_webelement_parent (   self,
  element 
)
private

Definition at line 107 of file elementfinder.py.

◆ _element_matches()

def SeleniumLibrary.locators.elementfinder.ElementFinder._element_matches (   self,
  element,
  tag,
  constraints 
)
private

Definition at line 253 of file elementfinder.py.

◆ _filter_elements()

def SeleniumLibrary.locators.elementfinder.ElementFinder._filter_elements (   self,
  elements,
  tag,
  constraints 
)
private

Definition at line 264 of file elementfinder.py.

◆ _find_by_class_name()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_class_name (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 159 of file elementfinder.py.

◆ _find_by_css_selector()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_css_selector (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 154 of file elementfinder.py.

◆ _find_by_default()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_default (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 176 of file elementfinder.py.

◆ _find_by_dom()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_dom (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 128 of file elementfinder.py.

◆ _find_by_id()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_id (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 116 of file elementfinder.py.

◆ _find_by_identifier()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_identifier (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 111 of file elementfinder.py.

◆ _find_by_jquery_selector()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_jquery_selector (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 137 of file elementfinder.py.

◆ _find_by_link_text()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_link_text (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 144 of file elementfinder.py.

◆ _find_by_name()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_name (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 120 of file elementfinder.py.

◆ _find_by_partial_link_text()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_partial_link_text (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 149 of file elementfinder.py.

◆ _find_by_sc_locator()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_sc_locator (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 169 of file elementfinder.py.

◆ _find_by_tag_name()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_tag_name (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 164 of file elementfinder.py.

◆ _find_by_xpath()

def SeleniumLibrary.locators.elementfinder.ElementFinder._find_by_xpath (   self,
  criteria,
  tag,
  constraints,
  parent 
)
private

Definition at line 124 of file elementfinder.py.

◆ _get_attrs_with_url()

def SeleniumLibrary.locators.elementfinder.ElementFinder._get_attrs_with_url (   self,
  key_attrs,
  criteria 
)
private

Definition at line 271 of file elementfinder.py.

◆ _get_base_url()

def SeleniumLibrary.locators.elementfinder.ElementFinder._get_base_url (   self)
private

Definition at line 283 of file elementfinder.py.

◆ _get_locator_separator_index()

def SeleniumLibrary.locators.elementfinder.ElementFinder._get_locator_separator_index (   self,
  locator 
)
private

Definition at line 246 of file elementfinder.py.

◆ _get_tag_and_constraints()

def SeleniumLibrary.locators.elementfinder.ElementFinder._get_tag_and_constraints (   self,
  tag 
)
private

Definition at line 205 of file elementfinder.py.

◆ _get_xpath_constraint()

def SeleniumLibrary.locators.elementfinder.ElementFinder._get_xpath_constraint (   self,
  name,
  value 
)
private

Definition at line 199 of file elementfinder.py.

◆ _get_xpath_constraints()

def SeleniumLibrary.locators.elementfinder.ElementFinder._get_xpath_constraints (   self,
  constraints 
)
private

Definition at line 194 of file elementfinder.py.

◆ _is_webelement()

def SeleniumLibrary.locators.elementfinder.ElementFinder._is_webelement (   self,
  element 
)
private

Definition at line 103 of file elementfinder.py.

◆ _normalize()

def SeleniumLibrary.locators.elementfinder.ElementFinder._normalize (   self,
  elements 
)
private

Definition at line 289 of file elementfinder.py.

◆ _parse_locator()

def SeleniumLibrary.locators.elementfinder.ElementFinder._parse_locator (   self,
  locator 
)
private

Definition at line 236 of file elementfinder.py.

◆ find()

def SeleniumLibrary.locators.elementfinder.ElementFinder.find (   self,
  locator,
  tag = None,
  first_only = True,
  required = True,
  parent = None 
)

Definition at line 61 of file elementfinder.py.

◆ register()

def SeleniumLibrary.locators.elementfinder.ElementFinder.register (   self,
  strategy_name,
  strategy_keyword,
  persist = False 
)

Definition at line 83 of file elementfinder.py.

◆ unregister()

def SeleniumLibrary.locators.elementfinder.ElementFinder.unregister (   self,
  strategy_name 
)

Definition at line 94 of file elementfinder.py.

Member Data Documentation

◆ _default_strategies

SeleniumLibrary.locators.elementfinder.ElementFinder._default_strategies
private

Definition at line 50 of file elementfinder.py.

◆ _key_attrs

SeleniumLibrary.locators.elementfinder.ElementFinder._key_attrs
private

Definition at line 51 of file elementfinder.py.

◆ _strategies

SeleniumLibrary.locators.elementfinder.ElementFinder._strategies
private

Definition at line 48 of file elementfinder.py.


The documentation for this class was generated from the following file: