public void CreateAccount() { homePage = new HomePage(this.DriverContext); homePage.OpenHomePage(); authenticationPage = homePage.ClickSignInButton(this.DriverContext); authenticationPage.EnterEmailCreateAccount(UserData.randomEmailAddress); createAccountPage = authenticationPage.ClickCreateAccountButton(this.DriverContext); Assert.AreEqual(UserData.randomEmailAddress, createAccountPage.GetEmailValue()); myAccountPage = createAccountPage .ClickMaleRadioButton() .EnterFirstName(UserData.fistName) .EnterLastName(UserData.lastName) .EnterPassword(UserData.randomPassword) .SelectDayOfBirth(4) .SelectMonthOfBirth(8) .SelectYearOfBirth(32) .ClickNewsletterCheckbox() .ClickOffersCheckbox() .EnterFirstNameAddress(UserData.fistName) .EnterLastNameAddress(UserData.lastName) .EnterCompanyAddress(UserData.companyAddress) .EnterAddressLine1Address(UserData.addressLine1Address) .EnterAddressLine2Address(UserData.addressLine2Address) .EnterCityAddress(UserData.cityAddress) .SelectStateAddress(3) .EnterZipcodeAddress(UserData.zipcodeAddress) .SelectCountryAddress(1) .EnterAdditionalInfoAddress(UserData.additionalInfoAddress) .EnterHomePhoneAddress(UserData.homePhoneAddress) .EnterMobilePhoneAddress(UserData.mobilePhoneAddress) .EnterAliasAddress(UserData.aliasAddress) .ClickRegisterButton(DriverContext); Assert.AreEqual(expectedHeader, myAccountPage.GetPageHeader()); Assert.AreEqual(expectedAccountName, myAccountPage.GetAccountName()); //Optional: if account was created successfuly user can override existing account credentials createAccountPage.OverwriteCredentials(true); }