Example #1
0
        //loginpage actions
        //login to merchtool and passes common page object
        public MtHomePageObject Login()
        {
            InputUserName.EnterText("CORP_Webdriver");
            InputPassword.EnterText("ANapPqH<");
            BtnLogin.Click();

            Console.WriteLine("Varified input creds and logged into merchtool");
            return(new MtHomePageObject());
        }
Example #2
0
        public EAPageObject Login(string userName, string password)
        {
            //UserName
            InputName.EnterText(userName);
            //password
            InputPassword.EnterText(password);
            //Click button
            btnLogin.Submit();

            //Return the page object
            return(new EAPageObject());
        }