public void Registration_Confirm_Test()
        {
            // Arrange
            string expectedURL = new AccountPage().GetSucessPageURL();
            string actualURL;

            // Act
            drive.NavigatePage(startPage.GetPageURL());
            drive.FindElementByXPath(startPage.ButtonRegister()).Click();
            drive.FindElementByIdAndInputData(registerPage.Firstname()).SendKeys(user.Firstname);
            drive.FindElementByIdAndInputData(registerPage.LastName()).SendKeys(user.Lastname);
            drive.FindElementByIdAndInputData(registerPage.Email()).SendKeys(user.Email);
            drive.FindElementByIdAndInputData(registerPage.Telephone()).SendKeys(user.Telephone);
            drive.FindElementByIdAndInputData(registerPage.Fax()).SendKeys(user.Fax);
            drive.FindElementByIdAndInputData(registerPage.Company()).SendKeys(user.Company);
            drive.FindElementByIdAndInputData(registerPage.Address1()).SendKeys(user.Address1);
            drive.FindElementByIdAndInputData(registerPage.Address2()).SendKeys(user.Address2);
            drive.FindElementByIdAndInputData(registerPage.City()).SendKeys(user.City);
            drive.FindElementByIdAndInputData(registerPage.Postcode()).SendKeys(user.Postcode);
            drive.FindElementByIdAndSelectIt(registerPage.Region()).SelectByText(user.Region);
            drive.FindElementByIdAndInputData(registerPage.Password()).SendKeys(user.Password);
            drive.FindElementByIdAndInputData(registerPage.PasswordConfirm()).SendKeys(user.Password);
            drive.FindElementByName(registerPage.CheckboxConfirm()).Click();
            drive.FindElementByXPath(registerPage.ButtonContinue()).Click();
            actualURL = drive.GetURL();

            // Assert
            Assert.AreEqual(expectedURL, actualURL);
        }
        public bool Execute(string username, string password, string email)
        {
            var mainPage = new MainPage(_browser);
            var loginPage = new LogonPage(_browser);
            var registerPage = new RegisterPage(_browser);

            _browser.Go(mainPage.Url);
            mainPage.LogOnLink().Click();
            loginPage.RegisterLink().Click();
            registerPage.Username().SendKeys(username);
            registerPage.Password().SendKeys(password);
            registerPage.Email().SendKeys(email);
            registerPage.ConfirmPassword().SendKeys(password);
            registerPage.RegisterBtn().Click();

            return mainPage.LogonDisplay().Text.Contains("Welcome "+username);
        }