def test_login(self, login_email_text, login_pass_text, expect_value): base_url = "https://user.17track.net/zh-cn" login_page = LoginPage(self.driver, base_url) self.driver.implicitly_wait(10) login_page.input_login_email(login_email_text) login_page.input_login_pass(login_pass_text) login_page.login() self.driver.implicitly_wait(30) page_title = self.driver.title assert page_title == expect_value
def test_login(self): base_url = "https://user.17track.net/zh-cn" login_email_text = "*****@*****.**" login_pass_text = "111111" login_page = LoginPage(self.driver, base_url) self.driver.implicitly_wait(10) login_page.input_login_email(login_email_text) login_page.input_login_pass(login_pass_text) login_page.login() self.driver.implicitly_wait(30) print(self.driver.title) self.assertEqual(1, 2)