Example #1
0
    def test__change_password(self):
        driver = self.driver

        self.driver.get(self.baseURL)
        time.sleep(2)
        language = CheckoutPage(driver)
        # English
        language.click_english()
        time.sleep(4)
        #Login
        login = LoginPage(driver)
        login.enter_login_email(self.correctemail)
        login.enter_login_password(self.correctpassword)
        login.click_login()
        time.sleep(2)
        login.dashboard_visible_check()
        time.sleep(1)

        profile = ProfilePage(driver)
        # change Password
        profile.click_change_password()
        time.sleep(2)
        profile.enter_current_password(self.correctpassword)
        profile.enter_new_password(self.newpassword)
        profile.enter_confirm_new_password(self.newpassword)
        profile.click_save()
        time.sleep(2)
        profile.password_changed_success_check()
Example #2
0
    def test__correct_Login(self):
        driver = self.driver

        self.driver.get(self.baseURL)
        time.sleep(2)

        language = CheckoutPage(driver)
        # English
        language.click_english()
        time.sleep(4)

        login = LoginPage(driver)
        login.enter_login_email(self.correctemail)
        login.enter_login_password(self.correctpassword)
        login.click_login()
        time.sleep(2)
        login.dashboard_visible_check()
        time.sleep(1)
        login.click_logout()
        time.sleep(1)