Пример #1
0
 def test_login_false_username_fail(self):
     username = self.driver.find_element_by_id("relogin_user")
     password = self.driver.find_element_by_id("relogin_password")
     username.send_keys(FAKEUSERNAME)
     password.send_keys(PASSWORD)
     password.send_keys(Keys.RETURN)
     false_login_result_page = page.TriggeredResults(self.driver)
     assert false_login_result_page.false_input_login_results()
Пример #2
0
    def test_privacy_policy(self):
        mainPage = page.MainPage(self.driver)
        mainPage.click_privacy_policy()

        self.driver.switch_to.window(self.driver.window_handles[1])

        priv_page_loaded = page.TriggeredResults(self.driver)
        assert priv_page_loaded.privacy_policy_loads()
Пример #3
0
 def test_login_success(self):
     username = self.driver.find_element_by_id("relogin_user")
     password = self.driver.find_element_by_id("relogin_password")
     username.send_keys(USERNAME)
     password.send_keys(PASSWORD)
     mainPage = page.MainPage(self.driver)
     mainPage.click_login_button()
     correct_login_result_page = page.TriggeredResults(self.driver)
     assert correct_login_result_page.correct_login_results()
Пример #4
0
 def test_login_false_password_fail_submit(self):
     username = self.driver.find_element_by_id("relogin_user")
     password = self.driver.find_element_by_id("relogin_password")
     username.send_keys(USERNAME)
     password.send_keys(FAKEPASSWORD)
     mainPage = page.MainPage(self.driver)
     mainPage.click_login_button()
     false_login_result_page = page.TriggeredResults(self.driver)
     assert false_login_result_page.false_input_login_results()
Пример #5
0
    def test_false_lost_password(self):
        mainPage = page.MainPage(self.driver)
        mainPage.click_lost_password()
        mainPage.click_email()
        email = self.driver.find_element_by_id("email")
        email.send_keys(FAKEEMAIL)
        email.send_keys(Keys.RETURN)

        false_email_reset = page.TriggeredResults(self.driver)
        assert false_email_reset.fail_change_security()
Пример #6
0
 def test_not_logged_in(self):
     mainPage = page.MainPage(self.driver)
     mainPage.click_login_button()
     not_logged_in_change_security_settings = page.TriggeredResults(
         self.driver)
     assert not_logged_in_change_security_settings.fail_change_security()
Пример #7
0
 def test_no_username_or_password(self):
     mainPage = page.MainPage(self.driver)
     mainPage.click_login_button()
     false_login_result_page = page.TriggeredResults(self.driver)
     assert false_login_result_page.not_input_login_results()
Пример #8
0
 def test_pl_page_loads(self):
     mainPage = page.MainPage(self.driver)
     assert mainPage.is_title_matches()
     mainPage.click_lost_password()
     lost_pw_result_page = page.TriggeredResults(self.driver)
     assert lost_pw_result_page.pw_results_found()