Пример #1
0
 public bool IsLoggedIn(AccountData account)
 {
     return(IsLoggedIn() &&
            driver.FindElement(By.Name("logout")).FindElement(By.TagName("b")).Text
            == "(" + account.Username + ")");
 }
Пример #2
0
 public bool IsLoggedIn(AccountData account)
 {
     return(IsLoggedIn() &&
            GetLoggetUserName() == account.Username);
 }
Пример #3
0
 public LoginHelper FillLoginForm(AccountData data)
 {
     FillField(By.Name("user"), data.Login);
     FillField(By.Name("pass"), data.Password);
     return(this);
 }