Esempio n. 1
0
        /*
         * Method validates the create account fields
         */
        public void Validates_Fields_CreateAccount()
        {
            try
            {
                Create_Account_Button.Click();
                Utils.VisibleElement("Validates the Email Field is visible", Email);
                Utils.VisibleElement("Validates the Password Field is visible", Password);
                Utils.Enable("Validates the Next Button is Disable", Next_Button);
                Email.Click();
                Email.SendKeys(VALUE_INCORRECT_EMAIL);                                        //Enter text incorrect
                Password.Click();
                Utils.VisibleElement("Validates the Error message is visible", ErrorMessage); //Validate the Error message is visible
                Utils.Asserts("Validates the password field is not Focusable", "false", Utils.Focus_Element("et_account_password"));
                Utils.Enable("Validates the Next Button is Disable", Next_Button);

                Password.Click();
                Utils.Asserts("Validates the password field is Focusable", "true", Utils.Focus_Element("et_account_password"));
                Password.SendKeys(VALUE_PASS);
                Utils.HideKeyboard();
                Utils.Enable("Validates the Next Button is Disable", Next_Button);
                HidePassword.Click();
                Utils.Asserts("Validate the Password Hide correct", VALUE_HIDE_PASS, Utils.Get_Attribute(Password, "text"));
            }
            catch (Exception error)
            {
                Console.WriteLine("This Method Validates_Fields_CreateAccount could not be execute", error);
            }
        }
        public LogInPage FillPassword(string password)
        {
            Password.Click();
            Password.Clear();
            Password.SendKeys(password);

            return(this);
        }
Esempio n. 3
0
 public void test()
 {
     Password.Click();
     PasswordA.Click();
     SetMethods.EnterText(PasswordA, "ABC");
     ClickMe.Click();
     Thread.Sleep(800);
     Assert.IsTrue(Completed.Text.Contains("Good job"), "Not Completed");
     ClosePopUp.Click();
 }
Esempio n. 4
0
        public void Login(string emailAddress, string password)
        {
            EmailAddress.Click();
            EmailAddress.Clear();
            EmailAddress.SendKeys(emailAddress);

            Password.Click();
            Password.Clear();
            Password.SendKeys(password);

            SignInButton.Click();
        }
Esempio n. 5
0
        public Menu Login(string userName, string password)
        {
            UserName.Click();
            UserName.Clear();
            UserName.SendKeys(userName);
            Password.Click();
            Password.Clear();
            Password.SendKeys(password);
            Submit.Click();

            return(new Menu(_driver));
        }
        public void Login(string emailAddress, string password)
        {
            Username.Click();
            Username.Clear();
            Username.SendKeys(emailAddress);

            Password.Click();
            Password.Clear();
            Password.SendKeys(password);

            LoginButton.Click();
        }
Esempio n. 7
0
        internal void Login(Table table)
        {
            SignIn.Click();
            dynamic values   = table.CreateDynamicInstance();
            string  email    = values.userName.ToString();
            string  password = values.password.ToString();

            Email.Click();
            Email.SendKeys(email);
            ContinueButton.Click();
            Password.Click();
            Password.SendKeys(password);
            ClickLogin();
        }
        internal void LoginSteps()
        {
            //extent Reports
            Base.test = Base.extent.StartTest("Login Test");

            //Populate the Excel sheet
            Global.GlobalDefinitions.ExcelLib.PopulateInCollection(Global.Base.ExcelPath, "SignIn");

            //Navigate to the Url
            Global.GlobalDefinitions.driver.Navigate().GoToUrl(Global.GlobalDefinitions.ExcelLib.ReadData(2, "Url"));

            //Click on SignIn link
            SignIntab.Click();
            Thread.Sleep(500);

            //Enter data into username text field
            Email.Click();
            Email.Clear();
            Email.SendKeys(Global.GlobalDefinitions.ExcelLib.ReadData(2, "Username"));

            //Enter data into password field
            Password.Click();
            Password.Clear();
            Password.SendKeys(Global.GlobalDefinitions.ExcelLib.ReadData(2, "Password"));

            //Click on Login button
            LoginButton.Click();
            Thread.Sleep(500);

            //Verify the Profile page is loaded successfully
            string text = Global.GlobalDefinitions.driver.FindElement(By.XPath("//*[@id='account-profile-section']/div/div[1]/a")).Text;

            if (text == "MarsLogo")

            {
                Global.Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Login Successfull");
            }

            else
            {
                Global.Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Login Uncessfull");
            }
        }
        internal void LoginSteps()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignIn");
            GlobalDefinitions.driver.Navigate().GoToUrl(GlobalDefinitions.ExcelLib.ReadData(2, "Url"));
            GlobalDefinitions.driver.Manage().Window.Maximize();

            SignIntab.Click();

            Email.Click();
            Email.Clear();
            Console.WriteLine("username = "******"Username"));
            Email.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Username"));

            Password.Click();
            Password.Clear();
            Password.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password"));
            Console.WriteLine("password = "******"Password"));

            LoginBtn.Click();
        }
Esempio n. 10
0
        internal void LoginSteps()
        {
            Global.GlobalDefinitions.ExcelLib.PopulateInCollection(AppDomain.CurrentDomain.BaseDirectory.Replace(@"MarsFramework\bin\Debug\", @"MarsFramework\ExcelData\TestDataShareSkill.xlsx"), "SignIn");
            //Click on the Sign In Tab
            SignIntab.Click();

            //Click on the email field
            Email.Click();

            //Type the email of the user on the email field
            Email.SendKeys(Global.GlobalDefinitions.ExcelLib.ReadData(1, "Username"));

            //Click on the password field
            Password.Click();

            //Type the password of the user on the password field
            Password.SendKeys(Global.GlobalDefinitions.ExcelLib.ReadData(1, "Password"));

            //Click on the login button
            LoginBtn.Click();
        }
Esempio n. 11
0
 public SignOnPage InputPassword(string pass)
 {
     Password.Click();
     Password.SendKeys(pass);
     return(this);
 }
Esempio n. 12
0
 public void EntryPassword(string textToType)
 {
     Password.Click();
     Password.SendKeys(textToType);
     ButtonSignIn.Click();
 }