def site(): WebSite.init(EpamJDISite) logger.info("Run Tests from '{}' file".format(__name__)) EpamJDISite.home_page.open() EpamJDISite.login_page.submit(User.default()) yield try: WebSettings.quit_browser() except RuntimeError as e: logger.exception(e)
def init(site, driver_name): WebSettings.use_driver(driver_name) WebCascadeInit().init_site_page(site)
def tearDownClass(cls): try: WebSettings.quit_browser() except: pass
def check_url(url): return match( ".*/" + str(url) + "(\\?.*)?", WebSettings.get_driver_factory().get_driver().current_url) != None
def open_uri(uri): WebSettings.get_driver_factory().get_driver().get(uri)
def tearDownClass(cls): try: WebSettings.quit_browser() except RuntimeError: pass
def check_url(url): return match(".*/" + str(url) + "(\\?.*)?", WebSettings.get_driver_factory().get_driver().current_url) != None
def tearDown(self): WebSettings.quit_browser()
def tearDownClass(cls): WebSettings.quit_browser()
def tearDownClass(cls): try: WebSettings.quit_browser() except RuntimeError as e: logging.exception(e)