def get_element_by_template(self, value): locator = WebDriverByUtils.fill_by_template( self.by_line_template if self.by_line_template is not None else self.by_default_template, value) return list( filter( lambda el: el.is_displayed(), self.table.get_web_element().find_elements( locator[0], locator[1])))
def get_element_by_template(self, value): locator = WebDriverByUtils.fill_by_template( self.by_line_template if self.by_line_template is not None else self.by_default_template, value) return list(filter(lambda el: el.is_displayed(), self.table.get_web_element().find_elements(locator[0], locator[1])))
def get(self): cell = SelectElement(web_element=self.web_element) if self.web_element is not None else \ SelectElement( WebDriverByUtils.fill_by_template(self.cell_locator_template, [self.column_index, self.row_index])) cell.init(parent=self.table, avatar=cell.avatar) return cell