Пример #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() &&
            GetLoggedUserName() == account.Username);
 }