Exemple #1
0
 //Passed provided user credentials into appropreate fields, then attempts log in
 public void LogIn(string username, string pwd)
 {
     Helper.WaitForElement(By.CssSelector("#login-form > fieldset > label:nth-child(4) > input"));
     UsernameElement.SendKeys(username);
     PasswordElement.SendKeys(pwd);
     LoginButton.Click();
 }
Exemple #2
0
 public void EnterData(string username, string password)
 {
     UsernameElement.Clear();
     PasswordElement.Clear();
     UsernameElement.SendKeys(username);
     PasswordElement.SendKeys(password);
 }