/// <summary> /// Sets the password field to a given password by css selector. /// </summary> /// <param name="password">password to enter</param> /// <returns>current login form for method chaining</returns> public LoginForm WithPassword(string password) { string selector = HeaderLoginInputSelector + nameof(password); ElementHelpers.SetFirstElementByCssSelector(selector, password); return(this); }
/// <summary> /// Sets the username field to a given username by css selector. /// </summary> /// <param name="username">username to enter</param> /// <returns>current login form for method chaining</returns> public LoginForm WithUsername(string username) { string selector = HeaderLoginInputSelector + nameof(username); ElementHelpers.SetFirstElementByCssSelector(selector, username); return(this); }