/// <summary> /// Perform Login actions /// </summary> /// <param name="username"></param> /// <param name="password"></param> private void PerformLogin(string username, string password) { try { Thread.Sleep(KortextGlobals.s); // Console.WriteLine("Clicking main menu btn"); // Pages.PearlRedMenuPage.ClickOnMainMenuBtn(); // Console.WriteLine("after Clicking main menu btn"); Pages.LandingPage.ClickOnLoginBtn(); // Console.WriteLine("Clicking login"); // Klick.On(MenuLogin); WaitFind.FindElem(UsernameTxtBox, 10).Clear(); UsernameTxtBox.SendKeys(username); PasswordTxtBox.Clear(); PasswordTxtBox.SendKeys(password); WaitFind.FindElem(loginButton, 10).Click(); // Klick.On(loginButton); // Console.WriteLine(ToasterText.GetStatusMessage()); Thread.Sleep(KortextGlobals.s); } catch (Exception e) { Console.WriteLine("Exception in PerformLogin: " + e.Message); } }
public WelcomToTcoPage ClickLogin(string userName, string userPassword) { UserNameTxtBox.SendKeys(userName); PasswordTxtBox.SendKeys(userPassword); LoginButton.Click(); return(new WelcomToTcoPage(Driver)); }
public PearlLoginPage LoginAs(string password) { PasswordTxtBox.SendKeys(password); //loginButton.Click(); Klick.On(loginButton); return(this); }
public HomePage LoginAs(string username, string password) { UsernameTxtBox.SendKeys(username); PasswordTxtBox.SendKeys(password); LoginBtn.Click(); return(new HomePage(_webDriverFactory)); }
public void Login(string email, string password) { EmailTxtBox.SendKeys(email); PasswordTxtBox.SendKeys(password); LoginBtn.Click(); }
public LoginPage FillLoginForm(string username, string password) { UsernameTxtBox.SendKeys(username); PasswordTxtBox.SendKeys(password); return(this); }
private void Login(string username, string password) { UsernameTxtBox.SendKeys(username); PasswordTxtBox.SendKeys(password); Click(LoginBtn); }
/// <summary> /// Perform Login actions /// </summary> /// <param name="username"></param> /// <param name="password"></param> private void PerformLogin(string username, string password) { UsernameTxtBox.SendKeys(username); PasswordTxtBox.SendKeys(password); LoginBtn.Click(); }