public void PerformLogin(string username, string password) { UserNameTextBox.SendKeys(username); PasswordTextBox.SendKeys(password); LoginButton.Click(); }
/// <summary> /// Enter the use credentials and try to log in - Verify login failed /// </summary> /// <param name="userName">The user name</param> /// <param name="password">The user password</param> public void LoginWithInvalidCredentials(string userName, string password) { EnterCredentials(userName, password); LoginButton.Click(); LoginError.GetTheVisibleElement(); }
public void ClickLoginButton() { LoginButton.Click(); }
/// <summary> /// Login in Souq.com using email and password /// </summary> /// <param name="email"> Souq.com user email address</param> /// <param name="password">Souq.com user password</param> public void LoginWithEmail(string email, string password) { EmailTextBox.SendKeys(email); PasswordTextBox.SendKeys(password); LoginButton.Click(); }
public void Login() { LoginButton.Click(); }
/// <summary> /// Enter the use credentials and log in - Navigation sample /// </summary> /// <param name="userName">The user name</param> /// <param name="password">The user password</param> /// <returns>Home Page Object Model</returns> public AHomePageModel LoginWithValidCredentials(string userName, string password) { EnterCredentials(userName, password); LoginButton.Click(); return(GetHomePageModel()); }
/// <summary> /// Enter the use credentials and try to log in - Verify login failed /// </summary> /// <param name="userName">The user name</param> /// <param name="password">The user password</param> public void LoginWithInvalidCredentials(string userName, string password) { EnterCredentials(userName, password); LoginButton.Click(); }
public void LoginClick() => LoginButton.Click();
public void Login(string username, string password) { UserNameField.SendKeys(username); PasswordField.SendKeys(password); LoginButton.Click(); }