Example #1
0
 public void GetAuthorizeToValidLoginAndPassword()
 {
     authPage.GoToUrl();
     authPage.SetLogin("admin");
     authPage.SetPassword("admin");
     authPage.Login().Click();
     Thread.Sleep(1500);
     Assert.AreEqual("http://localhost/litecart/admin/", driver.Url);
 }
 public void GetAuthorizeToInvalidLoginAndPassword()
 {
     authPage.GoToUrl();
     authPage.SetLogin("notadmin");
     authPage.SetPassword("notadmin");
     authPage.Login().Click();
     Thread.Sleep(2500);
     authPage.AlertDanger();
 }
Example #3
0
 public void GetAuthoriseAndRememberAccount()
 {
     authPage.GoToUrl();
     authPage.SetLogin("admin");
     authPage.SetPassword("admin");
     authPage.CheckBoxRemmemderMe().Click();
     authPage.Login().Click();
     Thread.Sleep(2500);
     driver.FindElement(By.CssSelector("[href*='http://localhost/litecart/admin/logout.php']")).Click();
     Assert.AreEqual("admin", authPage.InputUsername().GetAttribute("value"));
     Assert.AreEqual("admin", authPage.InputPassword().GetAttribute("value"));
 }
Example #4
0
 public void TestInputUsername(string a)
 {
     authPage.GoToUrl();
     authPage.SetLogin(a);
 }