Example #1
0
 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
Example #2
0
    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
Example #3
0
def test_correct_login(browser):
    hm = HomePage(browser)
    hm.get_login_page().login('admin', 'password')
Example #4
0
def test_correct_login(browser):
    hm = HomePage(browser)
    hm.get_login_page().login('admin', 'password')