예제 #1
0
파일: CommonSteps.cs 프로젝트: Iona777/CAS3
        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);
        }
예제 #2
0
 public void WhenTheUserClicksOnTheContinueAsNewInvestorButton()
 {
     theNewOrExistingInvestorPage.clickOnContinueAsNewInvestorBtn();
 }