Ejemplo n.º 1
0
 public void FillRegForm(AccountData account)
 {
     driver.FindElement(By.Name("username")).SendKeys(account.Name);
     driver.FindElement(By.Name("email")).SendKeys(account.Email);
 }
 private void FillPasswordForm(string url, AccountData account)
 {
     driver.Url = url;
     driver.FindElement(By.Name("password")).SendKeys(account.Password);
     driver.FindElement(By.Name("password_confirm")).SendKeys(account.Password);
 }
 private void FillRegistrationForm(AccountData account)
 {
     driver.FindElement(By.Name("username")).SendKeys(account.Name);
     driver.FindElement(By.Name("email")).SendKeys(account.Email);
 }
Ejemplo n.º 4
0
 public bool IsLoggedIn(AccountData account)
 {
     return(IsLoggedIn() &&
            GetLoggetUserName() == account.Name);
 }