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 LoginWithInValidCredentials()
 {
     LoginPage.Login(driver, TestDataReader.GetLoginCredentials("InvalidCredentials").ElementAt(0), TestDataReader.GetLoginCredentials("InvalidCredentials").ElementAt(1));
     WebDriverManager.WaitForElementById(driver, LoginPage.Loginerror);
     Assert.IsTrue(WebDriverManager.IsElementPresent(driver, LoginPage.Loginerror));
 }
 public void CreateAccountWithInValidCredentials()
 {
     CreateAccountPage.CreateAccount(driver, CreateAccountPage.GetRandomEmail("Invalid"), CreateAccountPage.GetRandomPassword(6));
     WebDriverManager.WaitForElementById(driver, CreateAccountPage.CreateAccountErrorMessage);
     Assert.IsTrue(WebDriverManager.IsElementPresent(driver, CreateAccountPage.CreateAccountErrorMessage));
 }