def is_link_text_visible(self, link_text):
     return page_actions.is_element_visible(self.driver, link_text,
                                            by=By.LINK_TEXT)
Beispiel #2
0
 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)
Beispiel #4
0
 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)