Exemplo n.º 1
0
        public void FillNewUserForm(string firstName, string lastName, string company, string jobtitle,
                                    string industry, string country, string password, string passwordConfirm)
        {
            this.FillEditField(by_firstName, firstName);
            this.FillEditField(by_lastName, lastName);
            this.FillEditField(by_company, company);
            this.FillEditField(by_jobTitle, jobtitle);
            // Fill the passwords fields
            this.FillEditField(by_password, password, false);
            this.FillEditField(by_passwordConfirm, password, false);
            WebElementHelper.ChooseSelectItem(CTX.driver.FindElement(by_industry), dictIndustry[industry]);
            WebElementHelper.ChooseSelectItem(CTX.driver.FindElement(by_country), dictCountries[country]);


            By          by_temp = By.XPath("//input[@id='terms']/..");
            IWebElement chkbox  = CTX.driver.FindElement(by_temp);

            String szAtt = chkbox.GetAttribute("Tag");

            CTX.driver.FindElement(By.XPath("//*[@id='terms']/ancestor::label")).Click();

            CTX.driver.FindElement(by_btnSignUp).Click();

            Console.Out.WriteLine("END");
//            CTX.driver.FindElement(by_btnSignUp).Click();
        }