public void ClickOnForgotPasswordLink()
 {
     LoginPage.ClickOnForgorPassword(driver);
     Assert.IsTrue(WebDriverManager.CurrentUrl(driver).Equals(ForgotPasswordPage.Url));
 }
 public void LoginWithValidCredentials()
 {
     LoginPage.Login(driver, TestDataReader.GetLoginCredentials("ValidCredentials").ElementAt(0), TestDataReader.GetLoginCredentials("ValidCredentials").ElementAt(1));
     Assert.IsTrue(WebDriverManager.CurrentUrl(driver).Equals(MyOffersPage.Url));
 }
 public void ReturnToLoginPage()
 {
     CreateAccountPage.ClickOnAlreadyHaveAccountLink(driver);
     Assert.IsTrue(WebDriverManager.CurrentUrl(driver).Equals(LoginPage.Url));
 }
 public void ReturnToLoginPage()
 {
     ForgotPasswordPage.ClickOnReturnToLogin(driver);
     Assert.IsTrue(WebDriverManager.CurrentUrl(driver).Equals(LoginPage.Url));
 }
 public void CreateAccountWithValidCredentials()
 {
     CreateAccountPage.CreateAccount(driver, CreateAccountPage.GetRandomEmail("Valid"), CreateAccountPage.GetRandomPassword(6));
     Assert.IsTrue(WebDriverManager.CurrentUrl(driver).Equals(SellCarPage.Url));
 }