Esempio n. 1
0
 def is_link_text_visible(self, link_text):
     return page_actions.is_element_visible(self.driver, link_text,
                                            by=By.LINK_TEXT)
Esempio n. 2
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)
Esempio n. 3
0
 def is_element_visible(self, selector, by=By.CSS_SELECTOR):
     return page_actions.is_element_visible(self.driver, selector, by)
Esempio n. 4
0
 def is_link_text_visible(self, link_text):
     return page_actions.is_element_visible(self.driver,
                                            link_text,
                                            by=By.LINK_TEXT)
Esempio n. 5
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)
Esempio n. 6
0
 def is_element_visible(self, selector, by=By.CSS_SELECTOR):
     return page_actions.is_element_visible(self.driver, selector, by)