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
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)