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 HomePage LoginAs(string username, string password)
 {
     UsernameTxtBox.SendKeys(username);
     PasswordTxtBox.SendKeys(password);
     LoginBtn.Click();
     return(new HomePage(_webDriverFactory));
 }
Beispiel #3
0
 public LoginPage FillLoginForm(string username, string password)
 {
     UsernameTxtBox.SendKeys(username);
     PasswordTxtBox.SendKeys(password);
     return(this);
 }
Beispiel #4
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();
 }
Beispiel #6
0
 public void enterUserName(string emailId)
 {
     UsernameTxtBox.SendKeys("*****@*****.**");
     nextBtn.Click();
 }