public void BacForgetPasswordPassword() { using (IWebDriver driver = new ChromeDriver()) { driver.Navigate().GoToUrl(ConfigurationManager.AppSettings["ForgetPassword"]); BacProvider.Set(driver, "Email", ItemType.ID, Actions.SendKey, "*****@*****.**"); BacProvider.Set(driver, "resetlinkbtn", ItemType.ID, Actions.Click); driver.Quit(); Console.WriteLine("Closed the browser."); } }
public void BacLoginTestFailIncorrect() { using (IWebDriver driver = new ChromeDriver()) { driver.Navigate().GoToUrl(ConfigurationManager.AppSettings["MainUrl"]); BacProvider.Set(driver, "Email", ItemType.ID, Actions.SendKey, "*****@*****.**"); BacProvider.Set(driver, "Password", ItemType.ID, Actions.SendKey, "adasd"); BacProvider.Set(driver, "signinbtn", ItemType.ID, Actions.Click); driver.Quit(); Console.WriteLine("Closed the browser."); } }