public void ThenUserEntersAllNewEmployeeCreationDetails() { try { PageFactory.InitElements(driverIE, personalDetails); personalDetails.VerifyLandedOnPersonalDetailsPage(); personalDetails.FillPersonalDetails(); PageFactory.InitElements(driverIE, addressDetails); addressDetails.VerifyLandedOnAddressDetailsPage(); addressDetails.fillAddress(); PageFactory.InitElements(driverIE, reimbursementDetails); reimbursementDetails.VerifyPageLandedOnReimbursement(); reimbursementDetails.FillReimbursementDetails(); PageFactory.InitElements(driverIE, thirdPartyAccess); thirdPartyAccess.VerifyPageLandedOnThirdParty(); thirdPartyAccess.FillDetails(); SpecHooks.extentTest.Pass(ScenarioContext.Current.StepContext.StepInfo.Text); } catch (Exception ex) { WriteReportAndLog(ex); } }