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(); }
public LogInPage(string username, string password) : this() { UsernameTb.SendKeys(username); PassWordTb.SendKeys(password); }