def setup(self, browser):
     link = 'http://selenium1py.pythonanywhere.com/en-gb/accounts/login/'
     page = LoginPage(browser, link)
     page.open()
     page.go_to_login_page()
     page.register_new_user("sun", "Ololoshkin2020")
     page.should_be_authorized_user()
Beispiel #2
0
    def setup(self, browser):
        email = str(time.time()) + "@tut.by"
        password = "******"

        page = LoginPage(browser, link)
        page.open()

        page.go_to_login_page()
        page.register_new_user(email, password)

        page.should_be_authorized_user()
Beispiel #3
0
    def test_quest_can_go_to_reset_password(self, browser):
        # Arrange
        page = LoginPage(browser, link)
        page.open()

        # Act
        page.go_to_login_page()
        page.go_to_reset_password_page()

        # Assert
        page.should_be_forgotten_password_form()
Beispiel #4
0
    def test_guest_can_log_in_with_correct_data(self, browser):
        # Arrange
        email = "*****@*****.**"
        password = "******"
        page = LoginPage(browser, link)
        page.open()

        # Act
        page.go_to_login_page()
        page.login_with_correct_data(email, password)

        # Assert
        page.should_be_login_in()