def logout(self): elem = Element(self._browser, self._config.get_locator('logout_link')) elem.click() page = HomePage(self._browser, False) assert page.is_logged_in() == False return page
def test_correct_login(browser): hm = HomePage(browser) hm.get_login_page().login('admin', 'password')