def test_login(self, username, password, ass): logging.info("---------------->执行登陆用例") # self.login_proxy.test_login(username, password) Page.get_loginPage().test_login(username, password) # 断言 assert is_exists_element(self.driver, ass)