Exemplo n.º 1
0
 public void DisplayLogIn()
 {
     Browser.WaitForElements(new List <IWebElement>()
     {
         LogInLink
     });
     LogInLink.Click();
 }
Exemplo n.º 2
0
 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");
     }
 }