Пример #1
0
        public void LogIn()
        {
            if (string.IsNullOrEmpty(UsernameTb.GetAttribute("value")) ||
                string.IsNullOrEmpty(PassWordTb.GetAttribute("value")))
            {
                throw new ArgumentException("Text box username or password are empty");
            }

            LogInBtn.Click();
        }
Пример #2
0
 public LogInPage(string username, string password) : this()
 {
     UsernameTb.SendKeys(username);
     PassWordTb.SendKeys(password);
 }