def _check_error_page(self):
     """There should be tests for error page. This method is called after each
     test. By default it looks for elements with class `error-page`.
     """
     error_page = get_error_page(self.driver)
     if error_page:
         raise exceptions.ErrorPageException(self.driver.current_url, error_page)
示例#2
0
 def _check_error_page(self):
     """There should be tests for error page. This method is called after each
     test. By default it looks for elements with class `error-page`.
     """
     error_page = get_error_page(self.driver)
     if error_page:
         raise exceptions.ErrorPageException(self.driver.current_url, error_page)
 def is_error_page(self):
     return bool(get_error_page(self.driver))
 def is_error_page(self):
     return bool(get_error_page(self.driver))