public void GivenARetailerHasCreatedProcessBRequest(string bProcess) { var LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); var BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess(bProcess); GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm(); var FormB01Page = new FormF01Page(driver); FormB01Page.ClickButton("Submit"); LoginPage = new LoginPage(driver); LoginPage.Logout(); LoginPage.CreateDriver(); LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.wsd); LoginPage.GetPageByLinkText("Processes"); var ProcessesIStartedPage = new ProcessesIStartedPage(driver); ProcessesIStartedPage.GetProcess("B. Metering", bProcess); var ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps(); ProcessesIStartedSteps.GivenIOpenTheProcess(); FormB01Page = new FormF01Page(driver); FormB01Page.ClickTheWsdMenuItem(); }
public void GivenARetailerHasCreatedAProcessBRequest() { var LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); var BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess("B01 Meter installation"); GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm(); var FormB01Page = new FormF01Page(driver); FormB01Page.ClickButton("Submit"); LoginPage = new LoginPage(driver); LoginPage.LogOutAnsSignInAsAnother(); LoginPage.LoginUser(sequenceUsers.wsd); LoginPage.GetPageByLinkText("Processes"); var ProcessesIStartedPage = new ProcessesIStartedPage(driver); ProcessesIStartedPage.GetProcess("B. Metering", "B01 Installation of a meter performed by the Wholesaler"); var ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps(); ProcessesIStartedSteps.GivenIOpenTheProcess(); FormB01Page = new FormF01Page(driver); FormB01Page.ClickTheWsdMenuItem(); }
public static void approveCommonApproveStepsForBpNationalOutgoing() { SelectMenu(BusinessProcessesPage.getPathOfFirstCheckBox()); SelectMenu(BusinessProcessesPage.getPathOfExecuteButton()); SelectMenu(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()); SelectMenu(InformationDialogPage.getPathOfOkButton()); SelectMenu(BusinessProcessesPage.getPathOfExecuteButton()); }
public void GivenIHaveAddedValidDataToAllSectionsOfTheProcessF4Form() { var retailerDetails = new Retailer.RetailDetails("ret", "id", "reference", "contact name", "0242420420", "*****@*****.**"); var eligiblePremiseDetails = new Retailer.EligiblePremiseDetails("1000000019S21", "10", "prospect villa", "add1", "add2", "add3", "Mere", "BA12 6JH"); var detailsOfEnquiry = new Retailer.DetailsOfEnquiry("details of enquiry text"); var consentToContact = new Retailer.ConsentToContact("Yes", "contact name", "08293427487", "No"); var declaration = new Retailer.Declaration("signature", DateTime.Now.ToString(), "Garth Vader", "The Boss"); LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess("F04B NHH customer enquiries received by Retailer"); FormF01Page = new FormF01Page(driver); FormF01Page.AddRetailerDetails(retailerDetails); FormF01Page.AddEligiblePremiseDetails(eligiblePremiseDetails); FormF01Page.AddDetailsOfEnquiry(detailsOfEnquiry); FormF01Page.AddConsentToContactDetails(consentToContact); FormF01Page.AddDeclaration(declaration); }
public void GivenARetailerHasCreatedAProcessARequest() { LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess("A01 Pre application enquiries"); GivenIHaveAddedValidDataToAllSectionsOfTheProcessAForm(); FormF01Page = new FormF01Page(driver); FormF01Page.ClickButton("Save & Submit"); LoginSteps = new LoginSteps(); LoginSteps.GivenILogInAsAWholesaler(); LoginPage = new LoginPage(driver); LoginPage.GetPageByLinkText("Processes"); ProcessesIStartedPage = new ProcessesIStartedPage(driver); ProcessesIStartedPage.GetProcess("A. New Connections", "A01 Pre-Application enquiry in relation to a new connection or connections"); ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps(); ProcessesIStartedSteps.GivenIOpenTheProcess(); var givenSteps = new SharedSpecflowSteps.GivenSteps(); givenSteps.GivenIExpandTheLeftHandColumn(); givenSteps.GivenIClickOnTheWSDLinkToProgressTheProcess(); }
internal void BankUserApproveBPFor_CARD_NMT_OUT_Transfer(string nameOfBP) { switch (nameOfBP) { #region CARD_NMT_OUT_EBANK_PI && NMT_OUT_CA && NMT_OUT_CA_EBANK_PI && NMT_OUT_CA_IBANK case "CARD_NMT_OUT_EBANK_PI": case "NMT_OUT_CA": case "NMT_OUT_CA_EBANK_PI": case "NMT_OUT_CA_IBANK": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(BusinessProcessesPage.getPathOfOKButtonOnBusinessProcessFormWPF()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region CARD_NMT_OUT_PF case "CARD_NMT_OUT_PF": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_CA_SO &&NMT_OUT_CA_IBANK_ST && CARD_NMT_OUT && CARD_NMT_OUT_EBANK_PI_SO && CARD_NMT_OUT_SO && NMT_EXPRESSBANK_INCASS_PAYM && NMT_EXTERN_MONEY_WRITEOFF_CA && NMT_EXTERN_MONEY_WRITEOFF_CARD && CARD_NMT_OUT_IBANK case "CARD_NMT_OUT": case "CARD_NMT_OUT_EBANK_PI_SO": case "CARD_NMT_OUT_SO": case "NMT_EXPRESSBANK_INCASS_PAYM": case "NMT_EXTERN_MONEY_WRITEOFF_CA": case "NMT_EXTERN_MONEY_WRITEOFF_CARD": case "CARD_NMT_OUT_IBANK": case "NMT_OUT_CA_IBANK_ST": case "NMT_OUT_CA_SO": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_CA_ST case "NMT_OUT_CA_ST": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region NMT_OUT_FREE case "NMT_OUT_FREE": new CellCopy(BusinessProcessesPage.getPathOfFirstCheckBox()).operationWithCell(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_FREE case "NMT_OUT_FREE_1C": new CellCopy(BusinessProcessesPage.getPathOfFirstCheckBox()).operationWithCell(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion } }
public static void enterBankUserEnterCurrentBpId(string actualBpId) { SelectMenu(BusinessProcessesPage.getPathOfFilterButton()); new TextCopy(actualBpId, BusinessProcessesPage.getPathOfFindBpId()).operationWithText(); }
public BusinessProcessSteps() { BusinessProcessesPage = new BusinessProcessesPage(driver); }