Beispiel #1
0
        /// <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);
            }
        }
Beispiel #2
0
 public WelcomToTcoPage ClickLogin(string userName, string userPassword)
 {
     UserNameTxtBox.SendKeys(userName);
     PasswordTxtBox.SendKeys(userPassword);
     LoginButton.Click();
     return(new WelcomToTcoPage(Driver));
 }
Beispiel #3
0
 public PearlLoginPage LoginAs(string password)
 {
     PasswordTxtBox.SendKeys(password);
     //loginButton.Click();
     Klick.On(loginButton);
     return(this);
 }
Beispiel #4
0
 public HomePage LoginAs(string username, string password)
 {
     UsernameTxtBox.SendKeys(username);
     PasswordTxtBox.SendKeys(password);
     LoginBtn.Click();
     return(new HomePage(_webDriverFactory));
 }
Beispiel #5
0
        public void Login(string email, string password)
        {
            EmailTxtBox.SendKeys(email);
            PasswordTxtBox.SendKeys(password);

            LoginBtn.Click();
        }
Beispiel #6
0
 public LoginPage FillLoginForm(string username, string password)
 {
     UsernameTxtBox.SendKeys(username);
     PasswordTxtBox.SendKeys(password);
     return(this);
 }
Beispiel #7
0
 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();
 }