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