示例#1
0
def login(driver, admin):
    """Вход в систему"""
    page = AuthPage(driver)
    page.username = admin.login
    page.password = admin.password
    page.click_login_button()
    yield
示例#2
0
    def test_signin_existing_user(self, admin):
        user = admin

        page = AuthPage(self.driver)
        page.username = user.login
        page.password = user.password
        page = page.click_login_button()

        assert page.user_is_signin()