public void FillForm(PracticeFormModel user)
        {
            Title.Click();
            FirstName.SendKeys(user.FirstName);
            LastName.SendKeys(user.LastName);
            Password.SendKeys(user.Password);
            FirstAddressField.SendKeys(user.FirstAddressField);
            City.SendKeys(user.City);
            SelectElement State = new SelectElement(Driver.
                                                    FindElement(By.XPath("/html/body/div/div[2]/div/div[3]/div/div/form/div[2]/p[7]/div/select")));

            State.SelectByText("California");
            PostCode.SendKeys(user.PostCode);
            MobilePhone.SendKeys(user.MobilePhone);

            Driver.ScrollTo(RegisterButton);
            RegisterButton.Click();
        }
        public void FillForm(PracticeFormModel user)
        {
            Gender(user.Gender).Click();
            FirstName.SendKeys(user.FirstName);
            LastName.SendKeys(user.LastName);
            Password.SendKeys(user.Password);
            Day.SendKeys(user.Day);
            Month.SelectByValue(user.Month);
            Year.SendKeys(user.Year);
            CompanyName.SendKeys(user.CompanyName);
            Address.SendKeys(user.Address);
            City.SendKeys(user.Address);
            State.SelectByValue(user.State);
            PostCode.SendKeys(user.PostCode);
            Phone.SendKeys(user.Phone);
            PhoneMobile.SendKeys(user.PhoneMobile);
            Alias.SendKeys(user.Alias);

            Submit.Click();
        }
        public void Setup()
        {
            Initialize();
            Driver.Navigate().GoToUrl("http://automationpractice.com/index.php");

            _practiceFormPage = new PracticeFormPage(Driver);

            _practiceFormPage.ButtonSignIn.Click();

            Random randomGenerator = new Random();
            int    randomInt       = randomGenerator.Next(1000);

            _email = "username" + randomInt + "@xxx.com";

            this.WaitForLoad();
            _practiceFormPage.FieldEmailAddress.SendKeys(_email);

            _practiceFormPage.ButtonCreateAccount.Click();

            _user       = PracticeFormFactory.Create();
            _user.Email = _email;
        }