def setUp(self): # 获取driver self.driver = webDriver().get_web_driver() # login页面实例化 self.services = Page(self.driver) # 进行登录 # self.services.shopLogin.shop_login("1149@admin", "639520200624") self.services.shopLogin.shop_login("1135@admin", "639520200623")
def setUp(self): # 获取driver self.driver=webDriver().get_web_driver() # login页面实例化 self.login=PageLogin(self.driver) #点击会员中心 self.login.page_click_vip_center() #点击登录链接 self.login.page_click_login_url()
def setUp(self): # 获取driver self.driver = webDriver().get_web_driver() # login页面实例化 self.transfer = Page(self.driver) # 进行登录 self.transfer.shopLogin.shop_login("1135@admin", "639520200623") # 进入代理服务页面 self.transfer.Services.page_click_services()
def setUpClass(cls): # 获取driver cls.driver=webDriver().get_web_driver() # # login实例化 cls.login=PageLogin(cls.driver) # 点击会员中心 cls.login.page_click_vip_center() # 点击登录链接 cls.login.page_click_login_url()
def setUp(self): # 获取driver self.driver = webDriver().get_web_driver() # login页面实例化 self.phone = Page(self.driver) # 进行登录 # self.phone.shopLogin.shop_login("1149@admin", "639520200624") self.phone.shopLogin.shop_login("1135@admin", "639520200623") # 进入代理服务页面 self.phone.Services.page_click_services()
def tearDown(self): # 关闭driver webDriver().quit_driver()
def tearDownClass(cls): # 关闭driver webDriver().quit_driver()