public void Tc_Forgotpassword_003() { testStarts("Tc_Forgotpassword_003", "Verify forgot password link in the login page"); openBrowser(URL); LoginPage.login(UserName, Password); waitForElementToDisplay(OR.Home_Menu_users, 60); clickOn(OR.Home_Menu_users); waitTime(10); UserPage.UserCreate(UserPage.Email, UserPage.UserName, UserPage.Password, UserPage.Password); waitForElementToDisplay(OR.AlertSucess, 60); verifyElementText(OR.User_CreateSucess, "User created successfully"); UserPage.verifyUser(); driver.Quit(); UserPage.MandrilCreateUser(); openBrowser(URL); LoginPage.login(UserPage.UserName, UserPage.Password); clickOn(OR.Home_Logout); waitForElementToDisplay(OR.ForgotPassword, 60); clickOn(OR.ForgotPassword); ForgotPasswordPage.ForgotpasswordFunction(UserPage.UserName); waitForElementToDisplay(OR.AlertSucess, 60); getText(OR.AlertSucess); verifyElementText(OR.AlertSucess, "If a matching Username was found an email was sent to the appropriate email address. If you do not receive an email please contact [email protected]"); UserPage.MandrilForgotPassword(); //driver.Navigate().GoToUrl(URL); //LoginPage.login(UserName, Password); }
public void Tc_Forgotpassword_001() { testStarts("Tc_Forgotpassword_001", "Verify the forgot password page displays properly"); openBrowser(URL); waitForElementToDisplay(OR.ForgotPassword, 60); clickOn(OR.ForgotPassword); ForgotPasswordPage.ForgotPasswordpageverification(); }
public void Tc_ForgotPassword_004() { testStarts("Tc_ForgotPassword_004", "Verify The validation message without giving email in username field."); openBrowser(URL); waitForElementToDisplay(OR.ForgotPassword, 60); clickOn(OR.ForgotPassword); ForgotPasswordPage.ForgotpasswordFunction(""); waitForElementToDisplay(OR.MandatoryField, 60); verifyElement(OR.MandatoryField); }
public void Tc_Forgotpassword_002() { testStarts("Tc_Forgotpassword_002", "Verify the functionality of forgot password with valid Credentials"); openBrowser(URL); waitForElementToDisplay(OR.ForgotPassword, 60); clickOn(OR.ForgotPassword); ForgotPasswordPage.ForgotpasswordFunction(ForgotPasswordPage.validUserName); waitForElementToDisplay(OR.AlertSucess, 60); getText(OR.AlertSucess); verifyElementText(OR.AlertSucess, "If a matching Username was found an email was sent to the appropriate email address. If you do not receive an email please contact [email protected]"); }