Ejemplo n.º 1
0
 def get_items(self):
     """Return list of items object. Class of item selected according to
 "self.item_class" property.
 """
     if not self._items:
         items_elements = selenium_utils.get_nested_elements(
             self.list_element)
         self._items = [
             self.item_class(self._driver, el) for el in items_elements
         ]
     return self._items
Ejemplo n.º 2
0
 def get_cells(self, row):
   """Split any row by getting first-level child WebElement.
   Return list of WebElement: [WebElement, WebElement ...]
   """
   return selenium_utils.get_nested_elements(row)
Ejemplo n.º 3
0
 def get_cells(self, row):
     """Split any row by getting first-level child WebElement.
 Return list of WebElement: [WebElement, WebElement ...]
 """
     return selenium_utils.get_nested_elements(row)