public void ForgotPasswordHyperlink_RedirectsToCorrespondingPage() { _loginPage.Navigate(); ForgotPasswordPage forgotPasswordPage = _loginPage.NavigateToForgotPasswordPage(); forgotPasswordPage.ForgotPasswordPageAvailabilityAssertion(); }
private async void ForgotPasswordPageExecute(object param) { ForgotPasswordPage forgotPasswordView = new ForgotPasswordPage(); ForgotPasswordViewModel forgotPasswordViewModel = new ForgotPasswordViewModel(); forgotPasswordView.BindingContext = forgotPasswordViewModel; await App.Current.MainPage.Navigation.PushAsync(forgotPasswordView); }
public void ForgotMyPassword_Link_Redirects_To_ForgotPasswordPage() { //Act ForgotPasswordPage forgotPasswordPage = loginPage.PressForgotMyPasswordLink(); //Assert Assert.That(forgotPasswordPage.GetTitle, Is.EqualTo("Forgot your password - My Store")); }
public void CorrectResertPassword() { LoginPage loginPage = new LoginPage(manager); ForgotPasswordPage forgotPasswordPage = loginPage.GoToForgotPasswordPage(); var correctPasswordReset = forgotPasswordPage.CorrectResertPassword(); Assert.IsTrue(correctPasswordReset.CorrectPasswordResetText.Contains("Na podany adres, został wysłany")); }
public void ForgotPassword() { ForgotPasswordPage forgotPasswordPage = LoginPage.GoToLoginPage(driver).GoToForgotPasswordPage(); forgotPasswordPage.ResetPassword("*****@*****.**").SaveImage(); Assert.AreEqual("BurlingtonEnglish has sent you an email with instructions for resetting your password. Please check your mailbox.", forgotPasswordPage.GetSuccessMessageText); Console.WriteLine("Forgot Password Success!"); }
public void EmptyEmailField() { LoginPage loginPage = new LoginPage(manager); ForgotPasswordPage forgotPasswordPage = loginPage.GoToForgotPasswordPage(); forgotPasswordPage.Button.Submit.Click(); ForgotPasswordPage pageAfterConfirmForm = new ForgotPasswordPage(manager); Assert.IsTrue(pageAfterConfirmForm.ErrorField.IsDisplayEmarilErrorField); Assert.AreEqual(pageAfterConfirmForm.ErrorField.EmptyEmailErrorText, "Pole jest wymagane."); }
public void ForgotPasswordTest() { new InternetPage(this.DriverContext).OpenHomePage().GoToForgotPasswordPage(); var forgotPassword = new ForgotPasswordPage(this.DriverContext); Verify.That( this.DriverContext, () => Assert.AreEqual(5 + 7 + 2, forgotPassword.EnterEmail(5, 7, 2)), () => Assert.AreEqual("Your e-mail's been sent!", forgotPassword.ClickRetrievePassword)); }
public void WrongEmail() { LoginPage loginPage = new LoginPage(manager); ForgotPasswordPage forgotPasswordPage = loginPage.GoToForgotPasswordPage(); forgotPasswordPage.Field.Email.SendKeys("lalala"); forgotPasswordPage.Button.Submit.Click(); ForgotPasswordPage pageAfterConfirmForm = new ForgotPasswordPage(manager); Assert.IsTrue(pageAfterConfirmForm.ErrorField.IsDisplayEmarilErrorField); Assert.AreEqual(pageAfterConfirmForm.ErrorField.EmptyEmailErrorText, "Adres email jest niepoprawny."); }
public void TestForgotPassswordWithInvalidEmailId() { // Verify TestData is loaded Assert.IsTrue(testData.isLoaded, "TestData load FAILED"); // Verify test data SignInData signInData = testData.GetTestData("TestForgotPassswordWithInvalidEmailId"); Assert.IsNotNull(testData, "TestData load FAILED"); HomePage homePage = new HomePage(driver); bool isPageVerified = homePage.VerifyPage(); Assert.IsTrue(isPageVerified, "VerifyPage() FAILED"); SignInPage signInPage = homePage.GoToSignInPage(); Assert.IsNotNull(signInPage, "GoToSignInPage() FAILED"); isPageVerified = signInPage.VerifyPage(); Assert.IsTrue(isPageVerified, "VerifyPage() FAILED"); ForgotPasswordPage forgotPasswordPage = signInPage.GoToForgotPasswordPage(); Assert.IsNotNull(forgotPasswordPage, "GoToForgotPasswordPage() FAILED"); isPageVerified = forgotPasswordPage.VerifyPage(); Assert.IsTrue(isPageVerified, "VerifyPage() FAILED"); Assert.IsTrue(forgotPasswordPage.SetEmailaddress(signInData.userName), "SetEmailaddress() FAILED"); signInPage = forgotPasswordPage.ClickResetPasswordButton(); Assert.IsNotNull(signInPage, "ClickResetPasswordButton() FAILED"); isPageVerified = forgotPasswordPage.VerifyPage(); Assert.IsTrue(isPageVerified, "VerifyPage() FAILED"); isPageVerified = forgotPasswordPage.VerifyForgotPasswordErrorMessage(); Assert.IsTrue(isPageVerified, "VerifyForgotPasswordErrorMessage() FAILED"); }
public void TestSignInForgotPassword() { // Verify driver is initialized Assert.IsNotNull(driver, "Driver initialization FAILED"); // Verify Home page is loaded HomePage homePage = new HomePage(driver); Assert.IsTrue(homePage.VerifyPage(), "HomePage VerifyPage() FAILED"); // Verify SignIn page is loaded SignInPage signInPage = homePage.GoToSignInPage(); Assert.IsNotNull(signInPage, "GoToSignInPage() FAILED"); Assert.IsTrue(signInPage.VerifyPage(), "SignInPage VerifyPage() FAILED"); // Navigate to forgot page ForgotPasswordPage forgotPasswordPage = signInPage.GoToForgotPasswordPage(); Assert.IsNotNull(forgotPasswordPage, "GoToForgotPasswordPage() FAILED"); // Verify navigate page is loaded Assert.IsTrue(forgotPasswordPage.VerifyPage(), "ForgotPasswordPage VerifyPage() FAILED"); }
public void WhenISubmitTheEmailAddressToChangeMyPassword(string email) { ForgotPasswordPage.GoTo(); ForgotPasswordPage.EnterEmail(email); }
public ForgotPasswordStep(ForgotPasswordPage forgotPasswordPage) { _forgotPasswordPage = forgotPasswordPage ?? throw new ArgumentNullException(nameof(forgotPasswordPage)); }
internal void SetUI(Page forgotPasswordPage) { UI = (ForgotPasswordPage)forgotPasswordPage; }
public ForgotPasswordSteps(CWebDriver driver) { webdriver = driver; forgotPasswordPage = new ForgotPasswordPage(webdriver.GetDriver()); }
public void Setup() { _forgotPasswordPage = new ForgotPasswordPage(Driver); }
public void ReturnToLoginPage() { ForgotPasswordPage.ClickOnReturnToLogin(driver); Assert.IsTrue(WebDriverManager.CurrentUrl(driver).Equals(LoginPage.Url)); }
public void GivenIHaveEnteteredCredential(string Email) { ForgotPasswordPage forgotPasswordPage = new ForgotPasswordPage(driver); forgotPasswordPage.Forgot(Email); }
public void EnterInvalidEmailAddress() { ForgotPasswordPage.EnterEmailAndSubmit(driver, TestDataReader.GetLoginCredentials("InvalidCredentials2").ElementAt(0)); WebDriverManager.WaitForElementById(driver, ForgotPasswordPage.ForgetPassworderror); Assert.IsTrue(WebDriverManager.GetElementById(driver, ForgotPasswordPage.ForgetPassworderror).Displayed); }
public void GivenINavigateToEdgePetrol() { Browser = Driver; page = new ForgotPasswordPage(Browser); Driver.Navigate().GoToUrl("https://www.edgepetrol.com/"); }
public void GivenTheForgotPasswordPage() { _forgotPasswordPage = new ForgotPasswordPage(this); _forgotPasswordPage.Go(); }
public void WhenIClickOnSubmitButton() { ForgotPasswordPage forgotPasswordPage = new ForgotPasswordPage(driver); forgotPasswordPage.ClickForgot(); }