Esempio n. 1
0
 public void PerformLogin(string username, string password)
 {
     UserNameTextBox.SendKeys(username);
     PasswordTextBox.SendKeys(password);
     LoginButton.Click();
 }
Esempio n. 2
0
 /// <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();
 }
Esempio n. 5
0
 public void Login()
 {
     LoginButton.Click();
 }
Esempio n. 6
0
 /// <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());
 }
Esempio n. 7
0
 /// <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();
 }
Esempio n. 8
0
 public void LoginClick() => LoginButton.Click();
Esempio n. 9
0
 public void Login(string username, string password)
 {
     UserNameField.SendKeys(username);
     PasswordField.SendKeys(password);
     LoginButton.Click();
 }