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); }