Esempio n. 1
0
 def setUpClass(cls):
     global logger
     global driver
     logger = Log()
     logger.info(
         '############################### START ###############################'
     )
     driver = Browser_engine.get_browser()
     cls.index = Third_pages_01.Third_homepages_login(driver)
     cls.index.max_window()
     cls.index.Third_open(param[1]["url"])
     cls.index.js(login_js)
     cls.index.sleep(3)
Esempio n. 2
0
 def setUpClass(cls):
     global logger
     global driver
     logger = Log()
     # 实例化浏览器引擎
     logger.info(
         '############################### START ###############################'
     )
     driver = Browser_engine().get_browser()
     cls.index = Ganzhou_pages.Ganzhou_pages_login(driver)
     cls.index.max_window()
     cls.index.open_Ganzhou(param[2]["url"])
     cls.index.type_username(param[2]["username"])
     cls.index.type_password(param[2]["password"])
     cls.index.click_login()
Esempio n. 3
0
 def setUpClass(cls):
     global logger
     global driver
     logger = Log()
     # 实例化浏览器引擎
     logger.info(
         '############################### START ###############################'
     )
     driver = Browser_engine().get_browser()
     # driver = Browser_engine().get_browser()
     cls.index = Hunan_pages.Hunan_pages_login(driver)
     cls.index.max_window()
     cls.index.open_Hunan(param[1]["url"])
     cls.index.username_input(param[1]["username"])
     cls.index.password_input(param[1]["password"])
     cls.index.click_login()