def setUp(self):
     self.driver = set_driver.set_driver()
     login.login(self.driver, config.username(), config.password())  #登录
Exemple #2
0
 def test_login_success(self):
     login.login(self.driver,config.username(),config.password())        #检查是否登录成功
     self.assertTrue(EC.visibility_of(self.driver.find_element(By.XPATH,'//div[@class="user-name-div"]')))