Exemplo n.º 1
0
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)
Exemplo n.º 2
0
 def init(site, driver_name):
     WebSettings.use_driver(driver_name)
     WebCascadeInit().init_site_page(site)
Exemplo n.º 3
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except:
         pass
Exemplo n.º 4
0
 def check_url(url):
     return match(
         ".*/" + str(url) + "(\\?.*)?",
         WebSettings.get_driver_factory().get_driver().current_url) != None
Exemplo n.º 5
0
 def open_uri(uri):
     WebSettings.get_driver_factory().get_driver().get(uri)
Exemplo n.º 6
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except RuntimeError:
         pass
Exemplo n.º 7
0
 def check_url(url):
     return match(".*/" + str(url) + "(\\?.*)?", WebSettings.get_driver_factory().get_driver().current_url) != None
Exemplo n.º 8
0
 def open_uri(uri):
     WebSettings.get_driver_factory().get_driver().get(uri)
Exemplo n.º 9
0
 def tearDown(self):
     WebSettings.quit_browser()
Exemplo n.º 10
0
 def tearDownClass(cls):
     WebSettings.quit_browser()
Exemplo n.º 11
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except RuntimeError as e:
         logging.exception(e)
Exemplo n.º 12
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except:
         pass
Exemplo n.º 13
0
 def tearDownClass(cls):
     WebSettings.quit_browser()
Exemplo n.º 14
0
 def init(site, driver_name):
     WebSettings.use_driver(driver_name)
     WebCascadeInit().init_site_page(site)