public static void approveCommonApproveStepsForBpNationalOutgoing() { SelectMenu(BusinessProcessesPage.getPathOfFirstCheckBox()); SelectMenu(BusinessProcessesPage.getPathOfExecuteButton()); SelectMenu(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()); SelectMenu(InformationDialogPage.getPathOfOkButton()); SelectMenu(BusinessProcessesPage.getPathOfExecuteButton()); }
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 } }