public void WhenTheUserEntersAnyValidDataForTheMandatoryFieldsPriorToTheInvestmentFundsScreenUsingFile(string fileName) { //Dashboard page theDashboardPage.clickApplyNowbtn(); Helper.pause(2000); Assert.IsTrue(theNewOrExistingInvestorPage.HeaderDisplayed(), "Check we are on new or existing investor page"); //Not going to create this method for all pages just now. Ask Craig for list of page titles and check the normal way //using Browser.Title. //New or Existing Investor page theNewOrExistingInvestorPage.clickOnContinueAsNewInvestorBtn(); //Leave the old header checkin for now Assert.AreEqual(ConstantsList.Eden_NewInvestorDetailsHeaderText, theNewInvestorDetailsPage.getHeader()); //New Investor Details page theNewInvestorDetailsPage.EnterAllValid(GetInputData(fileName)); theNewInvestorDetailsPage.clickOnContinueApplicatonBtn(); Helper.pause(2000); Assert.AreEqual(ConstantsList.Eden_InvestorNationalityHeaderText, theInvestorNationalityPage.getHeader()); //Investor Nationality page theInvestorNationalityPage.EnterAllValid(GetInputData(fileName)); theInvestorNationalityPage.clickOnContinueApplicationBtn(); Helper.pause(2000); }
public void ThenTheInvestorNationalityScreenIsDisplayed() { Assert.AreEqual(ConstantsList.Eden_InvestorNationalityHeaderText, theInvestorNationalityPage.getHeader()); }