def is_link_text_visible(self, link_text): return page_actions.is_element_visible(self.driver, link_text, by=By.LINK_TEXT)
def is_element_visible(self, selector, by=By.CSS_SELECTOR): if selector.startswith('/') or selector.startswith('./'): by = By.XPATH return page_actions.is_element_visible(self.driver, selector, by)
def is_element_visible(self, selector, by=By.CSS_SELECTOR): return page_actions.is_element_visible(self.driver, selector, by)