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));
 }