Пример #1
0
 def __init__(self):
     self.audit_content_page = AuditContentPage()
     self.driver = UtilsDriver.get_mis_driver()
Пример #2
0
 def __init__(self):
     self.publish_article_page = PublishArticlePage()
     self.driver = UtilsDriver.get_ttmp_driver()
Пример #3
0
 def click_login_btn(self):
     js = "document.getElementById('inp1').removeAttribute('disabled')"
     UtilsDriver.get_mis_driver().execute_script(js)
     self.login_page.find_login_btn().click()
Пример #4
0
 def __init__(self):
     self.driver = UtilsDriver.get_ttmp_driver()
Пример #5
0
 def test_end(self):
     # 将关闭浏览器驱动对象关闭标识变量修改为Ture
     # 修改完毕之后,主动调用quit_admin_driver
     UtilsDriver.chang_admin_key(True)
     UtilsDriver.quit_admin_driver()
Пример #6
0
 def __init__(self):
     self.driver = UtilsDriver.get_buyer_driver()
Пример #7
0
 def teardown_class(self):
     UtilsDriver.quit_admin_driver()
Пример #8
0
 def tearDownClass(cls):
     UtilsDriver.quit_driver()
Пример #9
0
 def setup_class(self):
     # 获取浏览器驱动(打开测试网址)
     self.driver = UtilsDriver.get_admin_driver()
Пример #10
0
 def setup_class(self):
     # 打开浏览器  --->调用utils工具中获取浏览器驱动对象的方法
     self.driver = UtilsDriver.get_admin_driver()
Пример #11
0
 def setUpClass(cls):
     # 获取浏览器驱动
     cls.driver = UtilsDriver.get_driver()
     cls.stock_page = StockProxy()
Пример #12
0
 def __init__(self):
     self.driver = UtilsDriver.get_mis_driver()
Пример #13
0
 def test_begin(self):
     # 将关闭浏览器驱动对象关闭标识变量修改为False
     # 修改完毕之后,后续所有的测试用例在调用quit_admin_driver
     # 时都不会关闭浏览器
     UtilsDriver.chang_admin_key(False)
Пример #14
0
 def teardown_class(self):
     UtilsDriver.quit_ttmp_driver()
Пример #15
0
 def __init__(self):
     # 获取浏览器驱动
     self.driver = UtilsDriver.get_driver()
Пример #16
0
 def setUpClass(cls):
     # 获取浏览器驱动对象
     cls.driver = UtilsDriver.get_driver()
     cls.category_page = CategoryProxy()
Пример #17
0
 def __init__(self):
     self.driver = UtilsDriver.get_admin_driver()
Пример #18
0
 def input_username(self, username):
     self.input_text(self.wy_login_page.find_username(), username)
     TouchAction(UtilsDriver.get_app_driver()).tap(x=524, y=493).perform()
Пример #19
0
 def teardown_class(self):
     UtilsDriver.quit_mis_driver()
Пример #20
0
 def test_end(self):
     UtilsDriver.is_mis_driver = True
     UtilsDriver.quit_mis_driver()
Пример #21
0
 def is_mobile_exist(self):
     return is_exist_element(UtilsDriver.get_app_driver(), self.login_page.mobile)