public void DisplayLogIn() { Browser.WaitForElements(new List <IWebElement>() { LogInLink }); LogInLink.Click(); }
public void Login(string userName, string password) { LogInLink = Driver.FindElement(By.LinkText("Log in")); LogInLink.Click(); UserPasswordTextBox = Driver.FindElement(By.Id("Email")); UserPasswordTextBox.SendKeys(userName); UserPasswordTextBox = Driver.FindElement(By.Id("Password")); UserPasswordTextBox.SendKeys(password); }
public void ClickOnLogInLink() { if (LogInLink.Displayed) { LogInLink.Click(); } else { throw new Exception("Element is not found or not clickable"); } }