Пример #1
0
        public void editRatesAndFeesCorp()
        {
            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var  loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var ratesAndFeesHelperCorp = new RatesAndFeesHelperCorp(GetWebDriver());

            //Variable
            String name = "TEST COMPANY" + RandomNumber(1,99);
            String TemplateName = "Test" + RandomNumber(1, 99);
            String LastName = "Tester" + RandomNumber(1,99);
            String Number = "12345678" + RandomNumber(10, 99);

            //Login with valid credential  Username
            loginAsCorpHelper.TypeText("EnterUsername", "selcorp");

            //Login with valid credential password
            loginAsCorpHelper.TypeText("EnterPassword", "seWelcome2");

            //Click On Login Button
            loginAsCorpHelper.ClickElement("ClickOnLoginButton");
            loginAsCorpHelper.WaitForWorkAround(3000);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

             //################################# Master  TAB #############################################

            //Click on Terminal And Equipment Tab
            ratesAndFeesHelperCorp.ClickElement("MaterDataCorpTab");

            //##################  Redirect To Url

            //Redirect To URL
             //   ratesAndFeesHelperCorp.RedirectToPage();
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/masterdata/manage_rates_fees");
            ratesAndFeesHelperCorp.WaitForWorkAround(4000);

            //################################# CREATE A LEAD   #############################################

            //Enter company name
            ratesAndFeesHelperCorp.TypeText("PricingTemplateName", TemplateName);

               //Search Processor Type
            ratesAndFeesHelperCorp.Select("ProcessorType", "150");

            //Select Processor
            ratesAndFeesHelperCorp.TypeText("VicaCreditOualifiedPercentage", "20");

            //Method of accepting card
            ratesAndFeesHelperCorp.Select("MethodOfAcceptingCards", "Ecommerce");

            //Select Discount Frequency
            ratesAndFeesHelperCorp.Select("DiscountFrequency", "Monthly");

            //Method of pricing plan
            //    ratesAndFeesHelperCorp.Select("PricePlan","10,000");

            //Select Debit Network InterFace Pass Through
            ratesAndFeesHelperCorp.Select("DebitNetworkInterFacePassThrough", "Yes");

            //Enter Vica Credit Oualified Percentage
            ratesAndFeesHelperCorp.TypeText("VicaCreditOualifiedPercentage", "30");

            //Enter Vica Credit Mid Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCreditMidQualified", "30");

            //Enter Vica Credit Authorization Fees
            ratesAndFeesHelperCorp.TypeText("VicaCreditAuthorizationFees", "30");

            //Enter Vica Check Card Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardQualified", "30");

            //Enter Vica CheckCard Mid Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardMidQualified", "30");

            //Enter Vica CheckCard Non Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardNonQualified", "30");

            //Enter Vica Check Card Per Item
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardPerIthem", "30");

            //Enter Vica Check Card Mid Qual Per Item
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardMidQualPerItem", "30");

            //Enter Vice Check Card Non Qual Per item
            ratesAndFeesHelperCorp.TypeText("ViceCheckCardNonQualPeritem", "30");

            //Enter Authentication Fees
            ratesAndFeesHelperCorp.TypeText("AuthenticationFees", "30");

            //Enter Master Card Credit Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCardCreditQualified", "30");

            //Enter Master Card Credit Non Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCardCreditNonQualified", "30");

            //Enter Master Card Credit PerItem
            ratesAndFeesHelperCorp.TypeText("MasterCardCreditPerItem", "30");

            //Enter Master Credit Card MidQual PerItem
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardMidQualPerItem", "30");

            //Enter Master Credit Card Non Qual Per Item
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardNonQualPerItem", "30");

            //Enter Master Credit Card Authentication fee
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardAuthenticationfee", "30");

            // ############################     MASTER DEBIT CARD   ###########################################

            //Enter Master Card Debit Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCardDebitQualified", "30");

            //Enter Master Credit Card Mid Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardMidQualified", "30");

            //Enter Master Debit Card Non Qualified
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardNonQualified", "30");

            //Enter Master Debit Card perItem
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardperItem", "30");

            //Enter Master Debit Card MidQual
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardMidQual", "30");

            //Enter Master Debit Card Non Qual PerItem
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardNonQualPerItem", "30");

            //Enter Master Debit Card Authorization Fees
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardAuthorizationFees", "30");

            // ############################     Discover Network Credit  ###########################################

            //Enter Discover NetworK Credit Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworCreditQualified", "30");

            //Enter Discover Mid Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverMidQualified", "30");

            //Enter Discover Network Credit NonQualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditNonQualified", "30");

            //Enter Discover Network Credit PerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditPerItem", "30");

            //Enter Discover Network Credit Mid Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditMidQualified", "30");

            //Enter Discover Network Credit Non Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditNonQualified", "30");

            //Enter Discover Network credit Authentication
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkcreditAuthentication", "30");

            // ############################     Discover Network Debit   ###########################################

            //Enter Discover Network Debit Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitQualified", "30");

            //Enter Discover Network Debit Mid Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitMidQualified", "30");

            //Enter Discover Network Debit Non Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitNonQualified", "30");

            //Enter Discover Network Debit PerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitPerItem", "30");

            //Enter Discover Network Debit Mid QualPerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitMidQualPerItem", "30");

            //Enter Discover Network Debit Non QualPerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitNonQualPerItem", "30");

            //Enter Discover Network Debit Authentication
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitAuthentication", "30");

            // ############################     American Express   ###########################################

            //Enter American Express Qualified
            ratesAndFeesHelperCorp.TypeText("AmericanExpressQualified", "30");

            //Enter American Express Mid Qualified
            ratesAndFeesHelperCorp.TypeText("AmericanExpressMidQualified", "30");

            //Enter American Express Debit Non Qual PerItem
            ratesAndFeesHelperCorp.TypeText("AmericanExpressDebitAuthentication", "30");

            //######################################## Diners Club / Carte Blanche    ###########################################################

            //Enter Diners Club / Carte Blanche
            ratesAndFeesHelperCorp.TypeText("DinerClubCareteQualified", "20");

            //Enter Diners Club / Carte Blanche Per
            ratesAndFeesHelperCorp.TypeText("DinerClubQualPer", "20");

            //Enter Diners Club / Carte Blanche
            ratesAndFeesHelperCorp.TypeText("DinerAuthentication", "20");

            //####################################   Discover   ################################################################

            //Enter Discover
            ratesAndFeesHelperCorp.TypeText("DiscoverQualifiedQualified", "20");

            //Enter Discover
            ratesAndFeesHelperCorp.TypeText("DiscoverPerItem", "20");

            //Enter Discover
            ratesAndFeesHelperCorp.TypeText("DiscoverAuthentictaion", "20");

            //###############################   EBT   ####################################################

            //Enter Discover
            ratesAndFeesHelperCorp.TypeText("EBTQualified", "20");

            //Enter Discover
            ratesAndFeesHelperCorp.TypeText("EBTItem", "2000");

            //###############################   Flexcache (Gift Card)   ####################################################

            //Enter Flex Cache Gift Card
            ratesAndFeesHelperCorp.TypeText("FlexCacheGiftCard", "20");

            //Enter Flex Cache Per Gift Card
            ratesAndFeesHelperCorp.TypeText("FlexCachePerGiftCard", "20");

            //Enter Flex Cache Authentication GiftCard
            ratesAndFeesHelperCorp.TypeText("FlexCacheAuthenticationGiftCard", "20");

            // ############################     JCB    ###########################################

            //Enter JCB  Qualified
            ratesAndFeesHelperCorp.TypeText("JCBQualified", "30");

            //Enter JCB Mid Qualified
            ratesAndFeesHelperCorp.TypeText("JCBMidQualified", "30");

            //Enter JCB Non Qualified
            ratesAndFeesHelperCorp.TypeText("JCBNonQualified", "30");

            //Enter JCB Per Item
            ratesAndFeesHelperCorp.TypeText("JCBPerItem", "30");

            //Enter JCB Mid Qual Per Item
            ratesAndFeesHelperCorp.TypeText("JCBMidQualPerItem", "30");

            //Enter JCB Non Qual PerItem
            ratesAndFeesHelperCorp.TypeText("JCBNonQualPerItem", "30");

            //Enter JCB Authentication
            ratesAndFeesHelperCorp.TypeText("JCBAuthentication", "30");

            // ############################     PIN BASED DEBIT    ###########################################

            //Enter PIN BASED DEBIT
            ratesAndFeesHelperCorp.TypeText("PinBasedDebitQualified", "30");

            //Enter Pin Based DebitPer Qualified
            ratesAndFeesHelperCorp.TypeText("PinBasedDebitPerQualified", "30");

            // ############################     Wright Express Fleet Card     ###########################################

            //Enter Wright Express Fleet Card Qualified
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardQualified", "30");

            //Enter Wright Express Fleet Card Mid Qualified
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardMidQualified", "30");

            //Enter Wright Express Fleet Card Non Qualified
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardNonQualified", "30");

            //Enter Wright Express Fleet Card Per Item
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardPerItem", "30");

            //Enter Wright Express Fleet Card Mid Qual Per Item
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardMidQualPerItem", "30");

            //Enter JCB Wright Express Fleet Card Non Qual Per Item
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardNonQualPerItem", "30");

            //Enter Wright Express FleetCard Authentication
            ratesAndFeesHelperCorp.TypeText("WrightExpressFleetCardAuthentication", "30");

            // ############################    Voyager Fleet Card      ###########################################

            //Enter Voyager Fleet Card Qualified
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardQualified", "30");

            //Enter Voyager Fleet Card Mid Qualified
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardMidQualified", "30");

            //Enter Voyager Fleet Card Non Qualified
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardNonQualified", "30");

            //Enter Voyager Fleet Card Per Item
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardPerItem", "30");

            //Enter Voyager Fleet Card Mid Qual PerItem
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardMidQualPerItem", "30");

            //Enter Voyager Fleet Card Non Qual Per Item
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardNonQualPerItem", "30");

            //Enter Voyager Fleet Card Authentication
            ratesAndFeesHelperCorp.TypeText("VoyagerFleetCardAuthentication", "30");

            //####################################  BILBACK SUURCHARGE #######################################

            //Enter BillBack Surcharge Qualified
            ratesAndFeesHelperCorp.TypeText("BillBackSurchargeQualified", "30");

            //####################################  MC Worldcard  #######################################

            //Enter Mc World Card Qualified
            ratesAndFeesHelperCorp.TypeText("McWorldCardQualified", "30");

            //Enter Mc World Card Mid Qualified
            ratesAndFeesHelperCorp.TypeText("McWorldCardMidQualified", "30");

            //Enter Mc World Card Non Qualified
            ratesAndFeesHelperCorp.TypeText("McWorldCardNonQualified", "30");

            //Enter Mc World Card Per Item
            ratesAndFeesHelperCorp.TypeText("McWorldCardPerItem", "30");

            //Enter Mc World Card Mid Qual PerItem
            ratesAndFeesHelperCorp.TypeText("McWorldCardMidQualPerItem", "30");

            //Enter Mc World Card Qualified
            ratesAndFeesHelperCorp.TypeText("McWorldCardNonQualPerItem", "30");

            //####################################  Visa Rewards1 #######################################

            //Enter Visa Rewards Qualified
            ratesAndFeesHelperCorp.TypeText("VisaRewardsQualified", "30");

            //Enter Visa Rewards Mid Qualified
            ratesAndFeesHelperCorp.TypeText("VisaRewardsMidQualified", "30");

            //#######################################  MC Other Item  ##################################################

            //Enter Mc Other Item qualified
            ratesAndFeesHelperCorp.TypeText("McOtherItemqualified", "30");

            //#######################################  Visa Other Item  ##################################################

            //Enter Visa Other Item
            ratesAndFeesHelperCorp.TypeText("VisaOtherItem", "30");

            //#######################################  DiscoverOtherItem #######################################

            //Enter Discover Other Item
            ratesAndFeesHelperCorp.TypeText("DiscoverOtherItem", "30");

            //################################### JBC OTHER ITEM   #####################################

            //Enter JBC Other Item
            ratesAndFeesHelperCorp.TypeText("JBCOtherItem", "30");

            //##################################### AMEX OTHER ITEM   ######################################

            //Enter AMEX Other Item
            ratesAndFeesHelperCorp.TypeText("AMEXOtherItem", "30");

            //##################################### PIN Debit-Other Volume Percentage  ###########################

            //Enter PIN Debit-Other Volume Percentage
            //  ratesAndFeesHelperCorp.ClickElement("DuesAssesmentCheckbox");

            //################################   OTHER SERVICE FEES    #####################################################

            //Click On Click On Expand Button
            //  ratesAndFeesHelperCorp.ClickElement("ClickOnOtherServiceFeeExpandButton");

            //Enter Account Setup Fee
            ratesAndFeesHelperCorp.TypeText("AccountSetupFee", "30");

            //Select Account Setup Frequency
            ratesAndFeesHelperCorp.Select("AccountSetupFrequency", "daily");

            //Enter ACH Return Item Processing
            ratesAndFeesHelperCorp.TypeText("ACHReturnItemProcessing", "30");

            //Select ACH Return Item Processing Frequency
            ratesAndFeesHelperCorp.Select("ACHReturnItemProcessingFrequency", "daily");

            //Enter Annual MemberShip
            ratesAndFeesHelperCorp.TypeText("AnnualMemberShip", "30");

            //Select Annual Member Ship Frequency
            ratesAndFeesHelperCorp.Select("AnnualMemberShipFrequency", "daily");

            //Select Batch Settlement
            ratesAndFeesHelperCorp.TypeText("BatchSettlement", "30");

            //Enter Batch Settlement Frequency
            ratesAndFeesHelperCorp.Select("BatchSettlementFrequency", "daily");

            //Enter Charge Back Processing
            ratesAndFeesHelperCorp.TypeText("ChargeBackProcessing", "30");

            //Select ChargeBackFrequency
            ratesAndFeesHelperCorp.Select("ChargeBackFrequency", "daily");

            //Enter Account Setup Fee
            ratesAndFeesHelperCorp.TypeText("DebitEBTSetUp", "30");

            //Select Debit EBT Frequency
            ratesAndFeesHelperCorp.Select("DebitEBTFrequency", "daily");

            //Enter Decisionable Data
            ratesAndFeesHelperCorp.TypeText("DecisionableData", "30");

            //Select Decisionable Data Frequency
            ratesAndFeesHelperCorp.Select("DecisionableDataFrequency", "daily");

            //Enter Deposit Confirmation Letter
            ratesAndFeesHelperCorp.TypeText("DepositConfirmationLetter", "30");

            //Select Deposit Confirmation Freq
            ratesAndFeesHelperCorp.Select("DepositConfirmationFreq", "daily");

            //Enter Excepetion Item Respond
            ratesAndFeesHelperCorp.TypeText("ExcepetionItemRespond", "30");

            //Select Excepetion Item Respond Frequency
            ratesAndFeesHelperCorp.Select("ExcepetionItemRespondFrequency", "daily");

            //Enter Flex Cache Setup
            ratesAndFeesHelperCorp.TypeText("FlexCacheSetup", "30");

            //Select Flex Cache Setup Frequency
            ratesAndFeesHelperCorp.Select("FlecCacheSetupFrequency", "daily");

            //Enter Flex Cache Internal Store Settlement
            ratesAndFeesHelperCorp.TypeText("FlexCacheInternalStoreSettlement", "30");

            //Select Flex Cache Internal Store Settlement Frequency
            ratesAndFeesHelperCorp.Select("FlexCacheInternalStoreSettlementFrequency", "daily");

            //Enter Monthly Cutomer Service Fees
            ratesAndFeesHelperCorp.TypeText("MonthlyCutomerServiceFees", "30");

            //Enter E Marchent View Access Fee
            ratesAndFeesHelperCorp.TypeText("EMarchentViewAccessFee", "30");

            //Enter MonthlySupplies
            ratesAndFeesHelperCorp.TypeText("MonthlySupplies", "30");

            //Enter Other Monthly Fees
            ratesAndFeesHelperCorp.TypeText("OtherMonthlyFees", "30");

            //Enter Other Fees
            ratesAndFeesHelperCorp.TypeText("OtherFees", "30");

            //Enter VisaMisuesFees
            ratesAndFeesHelperCorp.TypeText("VisaMisuesFees", "30");

            //Enter MCCNPAVSFees
            ratesAndFeesHelperCorp.TypeText("MCCNPAVSFees", "30");

            //Enter Discover Data Usage
            ratesAndFeesHelperCorp.TypeText("DiscoverDataUsage", "30");

            //Enter Acquire Processing Fees Debit
            ratesAndFeesHelperCorp.TypeText("AcquireProcessingFeesDebit", "30");

            //Enter MC License Volume Fee
            ratesAndFeesHelperCorp.TypeText("MCLicenseVolumeFee", "30");

            //Enter VisaMisuesFees
            ratesAndFeesHelperCorp.TypeText("VisaPartialAuth", "30");

            // ######################3#####################   RIGHT SIDE OF OTHER SERVICES FEES

            //Enter Frame Relay Setup
            ratesAndFeesHelperCorp.TypeText("FrameRelaySetup", "30");

            //Select Frame Relay Frequency
            ratesAndFeesHelperCorp.Select("FrameRelayFrequency", "daily");

            //Enter Minimum Montly Discount
            ratesAndFeesHelperCorp.TypeText("MinimumMontlyDiscount", "30");

            //Select Minimum Montly discount Frequency
            ratesAndFeesHelperCorp.Select("MinimumMontlyDiscountFrequency", "daily");

            //Enter Monthly Service Support
            ratesAndFeesHelperCorp.TypeText("MonthlyServiceSupport", "30");

            //Select Montly Service Support freq
            ratesAndFeesHelperCorp.Select("MontlyServiceSupportfreq", "daily");

            //Enter Net Connect Activation
            ratesAndFeesHelperCorp.TypeText("NetConnectActivation", "30");

            //Select Net Connect Activation Frequency
            ratesAndFeesHelperCorp.Select("NetConnectActivationFrequency", "daily");

            //Enter Orbital GateWay Activation
            ratesAndFeesHelperCorp.TypeText("OrbitalGateWayActivation", "30");

            //Select Orbital GateWay Activation Frequency
            ratesAndFeesHelperCorp.Select("OrbitalGateWayActivationFrequency", "daily");

            //Enter Orbital Montly Service Support
            ratesAndFeesHelperCorp.TypeText("OrbitalMontlyServiceSupport", "30");

            //Select Orbital Montly Service Support Frequency
            ratesAndFeesHelperCorp.Select("OrbitalMontlyServiceSupportFrequency", "daily");

            //Enter Pin Pad Encrypytion
            ratesAndFeesHelperCorp.TypeText("PinPadEncrypytion", "30");

            //Select Pin Pad Encrypytion Frequency
            ratesAndFeesHelperCorp.Select("PinPadEncrypytionFrequency", "daily");

            //Enter Recon Solution
            ratesAndFeesHelperCorp.TypeText("ReconSolution", "30");

            //Select Recon Solution Frequecy
            ratesAndFeesHelperCorp.Select("ReconSolutionFrequecy", "daily");

            //Enter Retrivel
            ratesAndFeesHelperCorp.TypeText("Retrivel", "30");

            //Select Retrivel Frequency
            ratesAndFeesHelperCorp.Select("RetrivelFrequency", "daily");

            //Enter Statement
            ratesAndFeesHelperCorp.TypeText("Statement", "30");

            //Select StatementFrequency
            ratesAndFeesHelperCorp.Select("StatementFrequency", "daily");

            //Enter WirelessActivation
            ratesAndFeesHelperCorp.TypeText("WirelessActivation", "30");

            //Select Wireless Activation Frequency
            ratesAndFeesHelperCorp.Select("WirelessActivationFrequency", "daily");

            //Enter Wireless Montly Service Support
            ratesAndFeesHelperCorp.TypeText("WirelessMontlyServiceSupport", "30");

            //Select Wireless Montly Service Support Frequecy
            ratesAndFeesHelperCorp.Select("WirelessMontlyServiceSupportFrequecy", "weekly");

            //Enter Monthly Debit Access Fees
            ratesAndFeesHelperCorp.TypeText("MonthlyDebitAccessFees", "30");

            //Enter Description
            ratesAndFeesHelperCorp.TypeText("Descriptionl", "30");

            //Enter MC Acquirier AVS Billing
            ratesAndFeesHelperCorp.TypeText("MCAcquirierAVSBilling", "30");

            //Enter MC Processing Integration
            ratesAndFeesHelperCorp.TypeText("MCProcessingIntegration", "30");

            //Enter Visa Network Fees
            ratesAndFeesHelperCorp.TypeText("VisaNetworkFees", "30");

            //Enter Visa Network Fes CNP
            ratesAndFeesHelperCorp.TypeText("VisaNetworkFesCNP", "30");

            //###############################################   OTHER AUTHOROIAZATION FEES  ######################################

            //Enter Click On Expand Btn OTHER AUTHOROIAZATION FEES
            //      ratesAndFeesHelperCorp.ClickElement("ClickOnExpandBtnOAF");

            //Enter MC proceesing Fees
            ratesAndFeesHelperCorp.TypeText("Voice", "60");

            //Enter Frame Relay Authoriztion
            ratesAndFeesHelperCorp.TypeText("FrameRelayAuthoriztion", "60");

            //Enter MC NABU Fees
            ratesAndFeesHelperCorp.TypeText("MCNABUFees", "60");

            //Enter Cross Border Fees
            ratesAndFeesHelperCorp.TypeText("CrossBorderFees", "60");

            //Enter Issuer Refferal
            ratesAndFeesHelperCorp.TypeText("IssuerRefferal", "60");

            //Enter Net Connect Authorization
            ratesAndFeesHelperCorp.TypeText("NetConnectAuthorization", "60");

            //Enter Visa APF Fees
            ratesAndFeesHelperCorp.TypeText("VisaAPFFees", "60");

            //Enter Cross Border FeesUs
            ratesAndFeesHelperCorp.TypeText("CrossBorderFeesUs", "60");

            //Enter Electronic AVS
            ratesAndFeesHelperCorp.TypeText("ElectronicAVS", "60");

            //Enter OAF WireLess Authorization Fees
            ratesAndFeesHelperCorp.TypeText("OAFWireLessAuthorizationFees", "60");

            //Enter OAF Zero Limit Fee
            ratesAndFeesHelperCorp.TypeText("OAFZeroLimitFee", "60");

            //Enter Connectivity Fees
            ratesAndFeesHelperCorp.TypeText("ConnectivityFees", "60");

            //Enter Visa Inter National Fees
            ratesAndFeesHelperCorp.TypeText("VisaInterNationalFees", "60");

            //##########    OTHERS

            //Pass Visa ISA Fees
            ratesAndFeesHelperCorp.ClickElement("PassVisaISAFees");

            //Pass Discover Service Fees
            ratesAndFeesHelperCorp.ClickElement("PassDiscoverServiceFees");

            //Accept Credit Transaction Only
            ratesAndFeesHelperCorp.ClickElement("AcceptCreditTransactionOnly");

            //Pass Discover Data Usage Charge
            ratesAndFeesHelperCorp.ClickElement("PassDiscoverDataUsageCharge");

            //Pass Visa ADF
            ratesAndFeesHelperCorp.ClickElement("PassVisaADF");

             //#############################Save Edit Rate and Fees

            ratesAndFeesHelperCorp.ClickElement("SaveEdit");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Verfy Text The Rates is successfully created!!
            ratesAndFeesHelperCorp.VerifyPageText("The Rates is successfully created!!");

            //Search Rate and fee
            ratesAndFeesHelperCorp.TypeText("SearchTemp", TemplateName);
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Click On Delete
            ratesAndFeesHelperCorp.ClickElement("ClickOnDelete");
            ratesAndFeesHelperCorp.AcceptAlert();
            ratesAndFeesHelperCorp.WaitForWorkAround(4000);

            //Verify Text
            ratesAndFeesHelperCorp.VerifyPageText("The Rates is successfully deleted!!");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);
        }
Пример #2
0
        public void ratesAndFeesCopyCorp()
        {
            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var  loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var ratesAndFeesHelperCorp = new RatesAndFeesHelperCorp(GetWebDriver());

            //Variable
            String name = "TEST COMPANY" + RandomNumber(1,99);
            String TemplateName = "Test" + RandomNumber(1, 99);
            String LastName = "Tester" + RandomNumber(1,99);
            String Number = "12345678" + RandomNumber(10, 99);

            //Login with valid credential  Username
            loginAsCorpHelper.TypeText("EnterUsername", "selcorp");

            //Login with valid credential password
            loginAsCorpHelper.TypeText("EnterPassword", "seWelcome2");

            //Click On Login Button
            loginAsCorpHelper.ClickElement("ClickOnLoginButton");
            loginAsCorpHelper.WaitForWorkAround(3000);

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

             //################################# Master  TAB #############################################

            //Click on Terminal And Equipment Tab
            ratesAndFeesHelperCorp.ClickElement("MaterDataCorpTab");

            //##################  Redirect To Url

            //Redirect To URL
             //   ratesAndFeesHelperCorp.RedirectToPage();
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/masterdata/manage_rates_fees");
            ratesAndFeesHelperCorp.WaitForWorkAround(4000);

            //################################# CREATE A LEAD   #############################################

            //Enter company name
            ratesAndFeesHelperCorp.TypeText("PricingTemplateName", TemplateName);

            //Search Processor Type
            ratesAndFeesHelperCorp.Select("ProcessorType", "150");

            //Select Processor
            ratesAndFeesHelperCorp.TypeText("VicaCreditOualifiedPercentage", "20");

            //Method of accepting card
            ratesAndFeesHelperCorp.Select("MethodOfAcceptingCards", "Ecommerce");

            //Select Discount Frequency
            ratesAndFeesHelperCorp.Select("DiscountFrequency", "Monthly");

            //Method of pricing plan
            //    ratesAndFeesHelperCorp.Select("PricePlan","10,000");

            //Select Debit Network InterFace Pass Through
            ratesAndFeesHelperCorp.Select("DebitNetworkInterFacePassThrough", "Yes");

            //Enter Vica Credit Oualified Percentage
            ratesAndFeesHelperCorp.TypeText("VicaCreditOualifiedPercentage", "30");

            //Enter Vica Credit Mid Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCreditMidQualified", "30");

            //Enter Vica Credit Authorization Fees
            ratesAndFeesHelperCorp.TypeText("VicaCreditAuthorizationFees", "30");

            //Enter Vica Check Card Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardQualified", "30");

            //Enter Vica CheckCard Mid Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardMidQualified", "30");

            //Enter Vica CheckCard Non Qualified
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardNonQualified", "30");

            //Enter Vica Check Card Per Item
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardPerIthem", "30");

            //Enter Vica Check Card Mid Qual Per Item
            ratesAndFeesHelperCorp.TypeText("VicaCheckCardMidQualPerItem", "30");

            //Enter Vice Check Card Non Qual Per item
            ratesAndFeesHelperCorp.TypeText("ViceCheckCardNonQualPeritem", "30");

            //Enter Authentication Fees
            ratesAndFeesHelperCorp.TypeText("AuthenticationFees", "30");

            //Enter Master Card Credit Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCardCreditQualified", "30");

            //Enter Master Card Credit Non Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCardCreditNonQualified", "30");

            //Enter Master Card Credit PerItem
            ratesAndFeesHelperCorp.TypeText("MasterCardCreditPerItem", "30");

            //Enter Master Credit Card MidQual PerItem
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardMidQualPerItem", "30");

            //Enter Master Credit Card Non Qual Per Item
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardNonQualPerItem", "30");

            //Enter Master Credit Card Authentication fee
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardAuthenticationfee", "30");

            // ############################     MASTER DEBIT CARD   ###########################################

            //Enter Master Card Debit Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCardDebitQualified", "30");

            //Enter Master Credit Card Mid Qualified
            ratesAndFeesHelperCorp.TypeText("MasterCreditCardMidQualified", "30");

            //Enter Master Debit Card Non Qualified
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardNonQualified", "30");

            //Enter Master Debit Card perItem
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardperItem", "30");

            //Enter Master Debit Card MidQual
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardMidQual", "30");

            //Enter Master Debit Card Non Qual PerItem
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardNonQualPerItem", "30");

            //Enter Master Debit Card Authorization Fees
            ratesAndFeesHelperCorp.TypeText("MasterDebitCardAuthorizationFees", "30");

            // ############################     Discover Network Credit  ###########################################

            //Enter Discover NetworK Credit Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworCreditQualified", "30");

            //Enter Discover Mid Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverMidQualified", "30");

            //Enter Discover Network Credit NonQualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditNonQualified", "30");

            //Enter Discover Network Credit PerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditPerItem", "30");

            //Enter Discover Network Credit Mid Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditMidQualified", "30");

            //Enter Discover Network Credit Non Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkCreditNonQualified", "30");

            //Enter Discover Network credit Authentication
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkcreditAuthentication", "30");

            // ############################     Discover Network Debit   ###########################################

            //Enter Discover Network Debit Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitQualified", "30");

            //Enter Discover Network Debit Mid Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitMidQualified", "30");

            //Enter Discover Network Debit Non Qualified
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitNonQualified", "30");

            //Enter Discover Network Debit PerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitPerItem", "30");

            //Enter Discover Network Debit Mid QualPerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitMidQualPerItem", "30");

            //Enter Discover Network Debit Non QualPerItem
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitNonQualPerItem", "30");

            //Enter Discover Network Debit Authentication
            ratesAndFeesHelperCorp.TypeText("DiscoverNetworkDebitAuthentication", "30");

            // ############################     American Express   ###########################################

            //Enter American Express Qualified
            ratesAndFeesHelperCorp.TypeText("AmericanExpressQualified", "30");

            //Save Edit Rate and Fees
            ratesAndFeesHelperCorp.ClickElement("SaveEdit");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Verfy Text The Rates is successfully created!!
            ratesAndFeesHelperCorp.VerifyPageText("The Rates is successfully created!!");

            //Search Rate and fee
            ratesAndFeesHelperCorp.TypeText("SearchTemp", TemplateName);
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Click On Copy
            ratesAndFeesHelperCorp.ClickElement("ClickOnCopy");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Save Edit Rate and Fees
            ratesAndFeesHelperCorp.ClickElement("SaveEdit");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

             //Verfy Text The Rates is successfully created!!
            ratesAndFeesHelperCorp.VerifyPageText("The Rates is successfully created!!");

            //Search Rate and fee
            ratesAndFeesHelperCorp.TypeText("SearchTemp", TemplateName);
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Click On Delete
            ratesAndFeesHelperCorp.ClickElement("ClickOnDelete");
            ratesAndFeesHelperCorp.AcceptAlert();
            ratesAndFeesHelperCorp.WaitForWorkAround(4000);

            //Verify Text
            ratesAndFeesHelperCorp.VerifyPageText("The Rates is successfully deleted!!");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Search Rate and fee
            ratesAndFeesHelperCorp.TypeText("SearchTemp", TemplateName);
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);

            //Click On Delete
            ratesAndFeesHelperCorp.ClickElement("ClickOnDelete");
            ratesAndFeesHelperCorp.AcceptAlert();
            ratesAndFeesHelperCorp.WaitForWorkAround(4000);

            //Verify Text
            ratesAndFeesHelperCorp.VerifyPageText("The Rates is successfully deleted!!");
            ratesAndFeesHelperCorp.WaitForWorkAround(3000);
        }