public void createAndDeletePDFCategories()
        {
            string[] username = null;
               string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            CreatePDFCategoriesHelper createPDFCategoriesHelper = new CreatePDFCategoriesHelper(GetWebDriver());

            //Variable random

            String  name = "Test" + RandomNumber(1, 99);

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

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

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

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/pdf_templates/categories");
            createPDFCategoriesHelper.WaitForWorkAround(6000);

            //Click on Click create button
            createPDFCategoriesHelper.ClickElement("ClickOnCreateBtn");
            createPDFCategoriesHelper.WaitForWorkAround(6000);

            //Enter Name
            createPDFCategoriesHelper.TypeText("EnterName", name);

            //Click on Save Button
            createPDFCategoriesHelper.ClickElement("ClickOnSaveBtn");
            createPDFCategoriesHelper.WaitForWorkAround(6000);

            //Verify text present
            createPDFCategoriesHelper.VerifyPageText("Category Created Successfully");

            //Clcik on Delete
            createPDFCategoriesHelper.SearchAndClick(name);
            createPDFCategoriesHelper.AcceptAlert();
            createPDFCategoriesHelper.ClickDisplayed("//a[@title='Save']");
            createPDFCategoriesHelper.WaitForWorkAround(4000);
             //   GetWebDriver().Navigate().Refresh();

               createPDFCategoriesHelper.VerifyPageText("Category Replaced Successfully.");
        }
        public void systemSchedularCreateNewJob()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var systemCorpHelper = new SystemCorpHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());

            //Variable
            var AddressType = "Test" + RandomNumber(1,99);
            var Test = "New" + GetRandomNumber();

            //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.");

            //Click on Residual Income tab
            systemCorpHelper.ClickElement("SystemTab");

            //Redirect To PickList
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/schedulers");
            systemCorpHelper.WaitForWorkAround(4000);

            //Click on Create Schedular button
            systemCorpHelper.ClickElement("ClickOnCreatebtn");

            //Enter Job Name
            systemCorpHelper.TypeText("JobName","Test");
            systemCorpHelper.WaitForWorkAround(2000);

            //Enter Job   //No Dropdown content available
            systemCorpHelper.Select("Job", "Testing");

            //Select interval
            systemCorpHelper.Select("Interval", "30");

            //Select Status
            systemCorpHelper.Select("Status", "0");

            //Everyday
            systemCorpHelper.ClickElement("Everyday");

            //Save Schedular
            systemCorpHelper.ClickElement("SaveSchedular");
            systemCorpHelper.WaitForWorkAround(4000);
        }
        public void systemPickListAddressType()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var systemCorpHelper = new SystemCorpHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());

            //Variable
            var AddressType = "Test" + RandomNumber(1,99);
            var Test = "New" + GetRandomNumber();

            //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.");

            //Click on Residual Income tab
            systemCorpHelper.ClickElement("SystemTab");

            //Redirect To PickList
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/pick-lists");

            //Click On Link Address Type
            systemCorpHelper.ClickElement("ClickOnLinkAddressType");

            //Click On Add New Item
            systemCorpHelper.ClickElement("ClickOnAddNewItem");

            //Add New Item
            systemCorpHelper.TypeText("AddNewItem",  AddressType);

            //Click on Save
            systemCorpHelper.ClickElement("ClickOnSaveBtn");

            //Click on Residual Income tab
            systemCorpHelper.ClickElement("ClickOnCancel");

            //Verfiy Text
            systemCorpHelper.VerifyPageText(AddressType);
            systemCorpHelper.WaitForWorkAround(4000);
        }
Esempio n. 4
0
        public void editProfileCorp()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var editProfileCorpHelper = new EditProfileCorpHelper(GetWebDriver());

            //Variable
            var name = "Test" + GetRandomNumber();
            var Test = "New" + GetRandomNumber();

            //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);

            //Click On Welcome
            editProfileCorpHelper.ClickElement("ClickOnWelcome");

            //Redirect to Proofile
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/myprofile");
            editProfileCorpHelper.WaitForWorkAround(3000);

            //Click on Edit Profile
            editProfileCorpHelper.ClickElement("EditProfile");
            editProfileCorpHelper.WaitForWorkAround(3000);

            //Enter First Name
            editProfileCorpHelper.TypeText("FirstName", "Sel");

            //Enter Middle name
            editProfileCorpHelper.TypeText("MiddleName", "");

            //Enter Middle name
            editProfileCorpHelper.TypeText("LastrName", "Enium");

            //Enter Middle name
            editProfileCorpHelper.TypeText("PhoneNumber", "(678) 578-4350");

            //Enter Middle name
            editProfileCorpHelper.ClickElement("SaveBtn");
            editProfileCorpHelper.WaitForWorkAround(3000);
        }
Esempio n. 5
0
        public void createLanguageCorp()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var createLanguageHelper = new CreateLanguageHelper(GetWebDriver());

            //Variable
            var mail = "Test" + RandomNumber(1, 99) + "@yopmail.com";
            var numb = "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.");

            //Clcik on Master Data
            createLanguageHelper.ClickElement("ClickOnMasterTabCorp");

            //Redirect To Language
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/languages");
             //   createLanguageHelper.ClickElement("LanguagesCorp");

            //Click On Create Btn
            createLanguageHelper.ClickElement("CreateNewLang");

            //Enter Language Name
            var lang = "Test" + RandomNumber(99,999);
            createLanguageHelper.TypeText("CorpLanguage", lang);

            //Clcik on Master Data
            createLanguageHelper.ClickElement("SaveLang");
            createLanguageHelper.WaitForWorkAround(2000);

            //Verify Text
            createLanguageHelper.VerifyPageText("Language Created Successfully");
            createLanguageHelper.WaitForWorkAround(2000);
        }
Esempio n. 6
0
        public void editOmahaPDFCorp()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var createPDFCategoriesHelper = new CreatePDFCategoriesHelper(GetWebDriver());
             var clientBugsHelper = new ClientBugsHelper(GetWebDriver());
            //Variable random

            String  name = "Test" + RandomNumber(1, 99);

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

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

            //Click on Click On Partner Agent
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/pdf_templates");
            clientBugsHelper.WaitForWorkAround(4000);

            //Enter Name
            clientBugsHelper.TypeText("OmahaFirst", "First Data - Omaha");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click on Omaha
            clientBugsHelper.ClickElement("ClickOnEdit");
            clientBugsHelper.WaitForElementPresent("EnterName",30);

            // Enter Name
            clientBugsHelper.TypeText("EnterName", "First Data - Omaha");

            //Click On Save
            clientBugsHelper.ClickElement("ClickOnSaveBtnPDFTemp");
            clientBugsHelper.WaitForWorkAround(4000);
        }
Esempio n. 7
0
        public void loginAsCorp()
        {
            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());

            //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);
        }
Esempio n. 8
0
        public void officeVerifyFND()
        {
            //  string[] username = null;
              //  string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            OfficeFNDNumberHelper officeFNDNumberHelper = new OfficeFNDNumberHelper(GetWebDriver());

            //Variable random

            String username = "TESTUSER" + RandomNumber(1,99);
            String  name = "Test" + RandomNumber(1, 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.");

            //Click on Agent in Topmenu
            officeFNDNumberHelper.ClickElement("ClickOnOfficeTab");

            //################################# CREATE A agent   #############################################

            //Click on Click On Partner Agent
            officeFNDNumberHelper.redirectToPage();

            //#################   Selenium Verify Codes

            //Enter Selenium Name
            officeFNDNumberHelper.TypeText("EnterSelenium", "Selenium Office");

            //Click on Selenium
            officeFNDNumberHelper.ClickElement("ClickOnSeleniumOffice");
            officeFNDNumberHelper.WaitForWorkAround(6000);

            //Verify codes Present
            //      officeFNDNumberHelper.VerifyText("FNDAgentNumber", "434970263886");
            officeFNDNumberHelper.VerifyPageText("434970263886");

            officeFNDNumberHelper.VerifyPageText("9799");

            officeFNDNumberHelper.VerifyPageText("3015");

            officeFNDNumberHelper.VerifyPageText("8672");

            //Click on Back link
            officeFNDNumberHelper.ClickElement("ClickOnCancel");
            officeFNDNumberHelper.WaitForWorkAround(6000);

            //######## Sel

            //Enter Sel Name
            officeFNDNumberHelper.TypeText("EnterSelenium", "Sel");

            //Click on Selenium
            officeFNDNumberHelper.ClickElement("ClickOnSel");
            officeFNDNumberHelper.WaitForWorkAround(6000);

            //Verify Values Present
              officeFNDNumberHelper.VerifyPageText("23");

              //Click on Back link
              officeFNDNumberHelper.ClickElement("ClickOnCancel");
              officeFNDNumberHelper.WaitForWorkAround(6000);
        }
        public void omahaAuthGridPushToOffice()
        {
            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var createProcessorHelper = new CreateProcessorHelper(GetWebDriver());
            var createOmahaAuthGripCorpHelper = new CreateOmahaAuthGripCorpHelper(GetWebDriver());

            //Variable
            String name = "3" + RandomNumber(1, 99);
            String code = "1" + RandomNumber(1,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 DATA #############################################

            //Click on MASTER DATA
            createOmahaAuthGripCorpHelper.ClickElement("ClickOnMasterDataTab");

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

            //Redirect To URL
            createOmahaAuthGripCorpHelper.RedirectToPage();

            //################################# Create Product tab #############################################

            // Click On Create
            createOmahaAuthGripCorpHelper.ClickElement("ClickOnCreate");

            //Enter Grid Id
            createOmahaAuthGripCorpHelper.TypeText("GridId", name);

            //Enter Visa Pos Authfees
            createOmahaAuthGripCorpHelper.TypeText("VisaPosAuthfees", code);

            //Enter MC Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("MCPosAuthFees", name);

            //Enter Amex Pos AuthFees
            createOmahaAuthGripCorpHelper.TypeText("AmexPosAuthFees", name);

            //Enter Disc Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("DiscPosAuthFees", code);

            //Enter JCD Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("JCDPosAuthFees", name);

            //Enter Voice Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("VoiceAuthFees", code);

            //Enter AVS Electronic Fees
            createOmahaAuthGripCorpHelper.TypeText("AVSElectronicFees", name);

            //Enter AVS Voice Fees
            createOmahaAuthGripCorpHelper.TypeText("AVSVoiveFees", code);

            //Enter AVS Voive Fees
            createOmahaAuthGripCorpHelper.TypeText("ARUFees", name);

              //  Click on Save button
            createOmahaAuthGripCorpHelper.ClickElement("SaveBtn");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Verify Page Text
            createOmahaAuthGripCorpHelper.VerifyPageText("Corporate Master Omaha Auth Grid Created Successfully.");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Push To Office
            createOmahaAuthGripCorpHelper.ClickElement("PushToOffice");

            //Click ok To Confirm
            createOmahaAuthGripCorpHelper.AcceptAlert();
            createOmahaAuthGripCorpHelper.WaitForWorkAround(2000);

            //Verify Confirmation Languges Successfully Pushed to Offices.
            createOmahaAuthGripCorpHelper.VerifyPageText("Omaha Auth Grids successfully pushed to offices.");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(2000);

            // Logout button
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");

            //################### OFFICE SIDE

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Click ON Admin
            createProcessorHelper.ClickElement("ClickOnAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Click On Mater
            createProcessorHelper.ClickElement("ClickOnMaterOff");

            //Redirect to Procesosr
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/omaha_auth_grids");

            //Search GripIdSrch
            createOmahaAuthGripCorpHelper.TypeText("GripIdSrch", name);
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Verify
            createOmahaAuthGripCorpHelper.VerifyPageText(name);
            createOmahaAuthGripCorpHelper.WaitForWorkAround(2000);
        }
        public void importAndCalculationRI()
        {
            //   string[] username = null;
            //     string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var importAndCalculationRIHelper = new ImportAndCalculationRIHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());

            //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");

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

            //Click on Residual Income tab
            importAndCalculationRIHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            importAndCalculationRIHelper.redirectToPage();

            //Click On Import New button
            importAndCalculationRIHelper.ClickElement("ClickOnImportNew");

            //Processor
            importAndCalculationRIHelper.Select("ProcessorType", "First Data North");
            importAndCalculationRIHelper.WaitForWorkAround(3000);

            //Reporting Period
            importAndCalculationRIHelper.Select("ReportingPeriod", "11");

            //File Date
            importAndCalculationRIHelper.ClickElement("FileDate");

            //ClickOnDate
            importAndCalculationRIHelper.ClickElement("ClickOnDate");

            var FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FDN_Samples.csv";
            importAndCalculationRIHelper.Upload("SelectBrowseCSVFile", FileName);
            importAndCalculationRIHelper.WaitForWorkAround(4000);

            //Import
            importAndCalculationRIHelper.ClickElement("ClickOnImportBtn");
            importAndCalculationRIHelper.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            importAndCalculationRIHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            importAndCalculationRIHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            importAndCalculationRIHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            importAndCalculationRIHelper.TypeText("FileName", "FDN_Samples");

            //Select Status
            importAndCalculationRIHelper.Select("SelectStatus", "Imported");

            //Click On Calculation wizard
            importAndCalculationRIHelper.ClickElement("ClickOnCalculation");
            importAndCalculationRIHelper.WaitForWorkAround(4000);

            //Click On Step1
            importAndCalculationRIHelper.ClickElement("ClickOnStep1");

            //Select Filter ReportingPeriod
            importAndCalculationRIHelper.TypeText("EnterRevenuePercentage", "50");

            // Click On Apply CheckBox
            importAndCalculationRIHelper.ClickElement("ClickOnApplyCheckBox");

            //Click ON Save button
            importAndCalculationRIHelper.ClickElement("ClickOnCalucationSaveBtn");
            importAndCalculationRIHelper.WaitForWorkAround(3000);

            // Calculate Payout
            importAndCalculationRIHelper.ClickElement("CalculatePayout");
            importAndCalculationRIHelper.WaitForElementVisible("//*[@id='imgdiv']/div[2]/img",20);
            importAndCalculationRIHelper.WaitForWorkAround(8000);

            // Publish Payout
            importAndCalculationRIHelper.ClickElement("PublishPayout");
            importAndCalculationRIHelper.WaitForElementVisible("//*[@id='imgdiv']/div[2]/img", 20);
              //  importAndCalculationRIHelper.elementpre();
              //  importAndCalculationRIHelper.WaitForWorkAround(8000);

             /*           //################  LOGOUT ######################3
            //Mover HoverWelcome
            importAndCalculationRIHelper.MouseHover("WelcomeMoveHover");

            // Logout button
            importAndCalculationRIHelper.ClickElement("ClickOnWelcomeBack");
            importAndCalculationRIHelper.WaitForWorkAround(4000);

            //################### OFFICE SIDE

            //Login with valid credential  Username
            importAndCalculationRIHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            importAndCalculationRIHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            importAndCalculationRIHelper.ClickElement("ClickOnLoginButtojn");

            //Click on Residual Income tab
            importAndCalculationRIHelper.ClickElement("OfficeResidualIncomeTab");

            //Click to Import
            importAndCalculationRIHelper.redirectToPayout();

            //#################################### SET FILTER    ##############################

            //Select Filter ReportingPeriod
            importAndCalculationRIHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            importAndCalculationRIHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            importAndCalculationRIHelper.Select("FilterFileFormat", "First Data North");

            //Click On Calculation wizard
            importAndCalculationRIHelper.ClickElement("ClickOnCalculation");
            importAndCalculationRIHelper.WaitForWorkAround(3000);

            //###################  START OVER
            //       importAndCalculationRIHelper.ClickElement("clickOnStartOver");
            //      importAndCalculationRIHelper.WaitForWorkAround(3000);

            //############### AGENT OUT LOOK
            importAndCalculationRIHelper.ClickElement("AgentOutlook");
            importAndCalculationRIHelper.WaitForWorkAround(6000);

            importAndCalculationRIHelper.elementLod("CalculateAdjustment");

            //############## Calculate Ajustment
            importAndCalculationRIHelper.ClickElement("CalculateAdjustment");
            //importAndCalculationRIHelper.calculateLod();

            importAndCalculationRIHelper.elementLod("CalculatePayoutoff");

            //##############   CalculatePayout
            importAndCalculationRIHelper.ClickElement("CalculatePayoutoff");
            importAndCalculationRIHelper.WaitForWorkAround(5000);

            //############   PublishLayout

            importAndCalculationRIHelper.elementLod("PublishLayout0ff");

            importAndCalculationRIHelper.ClickElement("PublishLayout0ff");
            importAndCalculationRIHelper.WaitForWorkAround(6000);
            //   importAndCalculationRIHelper.elementLod();

            //##################3   RESIDUAL INCOME
            //Click on Residual Income tab
            importAndCalculationRIHelper.ClickElement("OfficeResidualIncomeTab");

            //Click to Import
            importAndCalculationRIHelper.redirectToPayout();
            importAndCalculationRIHelper.WaitForWorkAround(5000);
                                                                                     */
        }
Esempio n. 11
0
        public void editAmexRates()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            EditAmexRateHelper editAmexRateHelper = new EditAmexRateHelper(GetWebDriver());

            //Variable
            String Num = "1" + RandomNumber(1, 999);
            String Nam = "New" + RandomNumber(1,999);
            String name = "Test" + RandomNumber(1,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.");

             //Click on Master tab
            editAmexRateHelper.ClickElement("ClickMasterTab");

            //Click to Import
            editAmexRateHelper.redirectToPage();

            //Click On Create
            editAmexRateHelper.ClickElement("ClickOnCreate");

            //Enter Mcc code
            editAmexRateHelper.TypeText("MCCCode", Num);

            //Enter Amex Rate
            editAmexRateHelper.TypeText("AmexRate", name);

            //Enter Amex Per Rate
            editAmexRateHelper.TypeText("AmexPerItem", Nam);

            //Click On Save Btn
            editAmexRateHelper.ClickElement("ClickOnSaveBtn");
            editAmexRateHelper.WaitForWorkAround(3000);

            //##################    EDIT

            //EnterMccCode Search code
            editAmexRateHelper.TypeText("EnterMccCode", Num);

            //Enter ProcessorCode
            editAmexRateHelper.TypeText("AmexRATEsRCH", name);

            //Click on  Edit
            editAmexRateHelper.ClickElement("ClickOnEditIcn");
            editAmexRateHelper.WaitForWorkAround(2000);

            //Enter Amex Rate
            editAmexRateHelper.TypeText("AmexRate", name);

            //Enter Amex Per Rate
            editAmexRateHelper.TypeText("AmexPerItem", Nam);

            //Click On Save Btn
            editAmexRateHelper.ClickElement("ClickOnSaveBtn");
            editAmexRateHelper.WaitForWorkAround(3000);
        }
        public void residualIncmeImportWorldPay()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResdiualIncmeWorldPayHelper resdiualIncmeWorldPayHelper = new ResdiualIncmeWorldPayHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeWorldPayHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeWorldPayHelper.redirectToPage();

            //Click On Import New button
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeWorldPayHelper.Select("ProcessorType", "WorldPay");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeWorldPayHelper.Select("ReportingPeriod", "11");

               //File Date
            resdiualIncmeWorldPayHelper.TypeText("FileDate", "2015-05-21");

            String FileName = GetPath() + "images/PowerPay_ResidualSamples - Small.csv";
            resdiualIncmeWorldPayHelper.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeWorldPayHelper.WaitForWorkAround(4000);

            //Import
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnImportBtn");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(5000);

            //####### Mapping Wizard
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnProcessBtn");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeWorldPayHelper.Select("SelectFiletReportingPeriod", "November 2015");

               // Select Processor Filer
               resdiualIncmeWorldPayHelper.Select("SelectProcessorFiler", "WorldPay");

               //Select Filter FileFormat
            resdiualIncmeWorldPayHelper.Select("FilterFileFormat", "Pegasus");

              //Select Filter ReportingPeriod
               resdiualIncmeWorldPayHelper.TypeText("FileName", "PowerPay_ResidualSamples - Small");

            //Select Status
            resdiualIncmeWorldPayHelper.Select("SelectStatus", "Imported");

            //Click On Calculation wizard
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnCalculation");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnStep1");

            //Select Filter ReportingPeriod
              //      resdiualIncmeWorldPayHelper.TypeText("EnterRevenuePercentage", "50");

            // Click On Apply CheckBox
            //        resdiualIncmeWorldPayHelper.ClickElement("ClickOnApplyCheckBox");

            //Click ON Save button
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnSave");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(3000);

              /*          //Click on Set Adjustment
            resdiualIncmeWorldPayHelper.ClickElement("SetRevenueAdjtment");

            //Enter Rule set
            resdiualIncmeWorldPayHelper.TypeText("EnterRuleSet", "R1");

            //Click ON Save button
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnSave2");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(3000);                 */

            //Click On Step1
            resdiualIncmeWorldPayHelper.ClickElement("ClickOnSkip1");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(3000);

            // Calculate Payout
               //     resdiualIncmeWorldPayHelper.ClickElement("CalculatePayout");
              //      resdiualIncmeWorldPayHelper.WaitForWorkAround(8000);

            // Publish Payout
            resdiualIncmeWorldPayHelper.ClickElement("PublishPayout");
               //     resdiualIncmeWorldPayHelper.elementpre();
            resdiualIncmeWorldPayHelper.WaitForWorkAround(8000);

            //Select Filter ReportingPeriod
            resdiualIncmeWorldPayHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeWorldPayHelper.Select("SelectProcessorFiler", "WorldPay");

            //Select Filter FileFormat
            resdiualIncmeWorldPayHelper.Select("FilterFileFormat", "Pegasus");

            //Select Filter ReportingPeriod
            resdiualIncmeWorldPayHelper.TypeText("FileName", "PowerPay_ResidualSamples - Small");

            //Select Status
            resdiualIncmeWorldPayHelper.Select("SelectStatus", "Published");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(3000);

            //Click on Office Payout
            resdiualIncmeWorldPayHelper.ClickElement("ViewOfficePayout");
            resdiualIncmeWorldPayHelper.WaitForWorkAround(8000);

            //VERIFY TEXT
            //Verify 70000.00
            resdiualIncmeWorldPayHelper.VerifyPageText("70000.00");

            //Verify 75000.00
            resdiualIncmeWorldPayHelper.VerifyPageText("75000.00");

            //Verify 64950.00
            resdiualIncmeWorldPayHelper.VerifyPageText("64950.00");

            //verify 54950.00
            resdiualIncmeWorldPayHelper.VerifyPageText("54950.00");

            //Final Payout
            //Verify 67500.00
            resdiualIncmeWorldPayHelper.VerifyPageText("67500.00");

            //Verify 63000.00
            resdiualIncmeWorldPayHelper.VerifyPageText("63000.00");

            //Verify 38990.00
            resdiualIncmeWorldPayHelper.VerifyPageText("38990.00");

            //verify 32990.00
            resdiualIncmeWorldPayHelper.VerifyPageText("32990.00");
        }
        public void pDFCategoriesViewInOffice()
        {
            string[] username = null;
               string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            CreatePDFCategoriesHelper createPDFCategoriesHelper = new CreatePDFCategoriesHelper(GetWebDriver());

            //Variable random

            String  name = "Test" + RandomNumber(1, 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.");

            //Click on Agent in Topmenu
            createPDFCategoriesHelper.ClickElement("ClickOnPDFTemplateTab");

            //################################# ADD NEW CATEGORY  #############################################

            //Click on Click On Partner Agent
            createPDFCategoriesHelper.redirectToPage();

            //Click on PDF Category
               //     createPDFCategoriesHelper.ClickElement("ClickOnPDFCategory");

            //Click on Click create button
            createPDFCategoriesHelper.ClickElement("ClickOnCreateBtn");
            createPDFCategoriesHelper.WaitForWorkAround(6000);

            //Enter Name
            createPDFCategoriesHelper.TypeText("EnterName", name);

            //Click on Save Button
            createPDFCategoriesHelper.ClickElement("ClickOnSaveBtn");

            //Verify text present
            createPDFCategoriesHelper.VerifyPageText("Category Created Successfully");
            createPDFCategoriesHelper.WaitForWorkAround(3000);

            //Redirect To Url
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");
            createPDFCategoriesHelper.WaitForWorkAround(3000);

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/admin");

            //Click on PDF Tab
            createPDFCategoriesHelper.ClickElement("ClickOnPDFTab");

            //Reirect to PDF Category
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/pdf_templates/categories");

               //Verify Text
            createPDFCategoriesHelper.VerifyPageText("name");
            createPDFCategoriesHelper.WaitForWorkAround(4000);
        }
        public void residualIncomePublishPayoutFromOffice()
        {
            string[] username = null;
              string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             username = oXMLData.getData("settings/Credentials", "username");
             password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016");

            //File Date
            clientBugsHelper.ClickElement("ClickOnFileDate");

            //Click on Date
            clientBugsHelper.ClickElement("SelectDate");

            var FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported");

            //#############   CALCULATION WIZARD

            //Click On Calculation wizard
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSkipRecal1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            // Publish Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Logout
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Login with valid username and password
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Click on Residual Income Tab
            clientBugsHelper.ClickElement("ClickOnPDFTemplates");
            clientBugsHelper.WaitForWorkAround(3000);

            //Redirect To URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            //            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status New
            clientBugsHelper.Select("SelectStatusRIReport", "New");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Calculation Wizard
            clientBugsHelper.ClickElement("ClickOnCalculationWizard");

            //Agent LookUp
            clientBugsHelper.ClickElement("AgentLookUp");
            clientBugsHelper.WaitForWorkAround(3000);

            //Calculate Adjustment
            clientBugsHelper.ClickElement("CalculateAdjustment");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Adjustments calculation successfully completed");

            //AgentPayout Calculation
            clientBugsHelper.ClickElement("AgentPayoutCalculation");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click Publish
            clientBugsHelper.ClickElement("ClickPublish");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Payouts Published.");

            //View Published PayoutRI
            clientBugsHelper.ClickElement("ViewPublishedPayoutRI");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void residualIncomeEmailThisReport()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            ResdiualIncmeFstDataNrthHelperRevnueShareSet resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11");

            //File Date
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("FileDate");

            //File Date
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("FileDate");

            //Select date
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SeldectDate28");

            String FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported");

            //#############   CALCULATION WIZARD

            //Click On Calculation wizard
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnStep1");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("SeleniumOffive25", "25");

            // Click On Apply CheckBox
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("Sel10", "10");

            //Click ON Save button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalucationSaveBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SkipStep2");

            // Publish Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("CalculatePayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //Click on View Reports
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClcikOnViewReport");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

              //###################   RESIDUAL iNCOME Email This Report

            //Click On Email Icone
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnEmailIcone");

            //Click On Send Button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSend1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Verify Text Present
            resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("Reports");
        }
        public void residualIncomeViewReportsCorp()
        {
            string[] username = null;
              string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             username = oXMLData.getData("settings/Credentials", "username");
             password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016");

            //File Date
            clientBugsHelper.ClickElement("ClickOnFileDate");

            //Click on Date
            clientBugsHelper.ClickElement("SelectDate");

            var FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported");

            //#############   CALCULATION WIZARD

            //Click On Calculation wizard
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSkipRecal1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            // Publish Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click on Report View
            clientBugsHelper.ClickElement("CorpViewReports");
            clientBugsHelper.WaitForWorkAround(4000);

            //Verify text Selenium Corp Residual Reports
            clientBugsHelper.VerifyPageText("Selenium Corp Residual Reports");
            clientBugsHelper.WaitForWorkAround(4000);
        }
Esempio n. 17
0
        public void deletePublihedFileRI()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            DeletePublishFileHelper deletePublishFileHelper = new DeletePublishFileHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());

            //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.");

             //Click on Residual Income tab
             deletePublishFileHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            deletePublishFileHelper.redirectToPage();

            //Click On Import New button
            deletePublishFileHelper.ClickElement("ClickOnImportNew");

            //Processor
            deletePublishFileHelper.Select("ProcessorType", "First Data North");
            deletePublishFileHelper.WaitForWorkAround(3000);

            //Reporting Period
            deletePublishFileHelper.Select("ReportingPeriod", "11");

            //File Date
            deletePublishFileHelper.ClickElement("FileDate");

            deletePublishFileHelper.ClickElement("ClickDate");

            String FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FDN_Samples.csv";
            deletePublishFileHelper.Upload("SelectBrowseCSVFile", FileName);
            deletePublishFileHelper.WaitForWorkAround(4000);

            //Import
            deletePublishFileHelper.ClickElement("ClickOnImportBtn");
            deletePublishFileHelper.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            deletePublishFileHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            deletePublishFileHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            deletePublishFileHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            deletePublishFileHelper.TypeText("FileName", "FDN_Samples");

            //Select Status
            deletePublishFileHelper.Select("SelectStatus", "Imported");

            //Click on delete icon
            deletePublishFileHelper.ClickElement("ClickOnCalculation");
            deletePublishFileHelper.WaitForWorkAround(4000);
        }
Esempio n. 18
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);
        }
        public void residualIncmeImportRevenueAdustment()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeSkipHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeSkipHelper.redirectToPage();

            //Click On Import New button
            resdiualIncmeSkipHelper.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeSkipHelper.Select("ProcessorType", "First Data North");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeSkipHelper.Select("ReportingPeriod", "11");

            //File Date
            resdiualIncmeSkipHelper.TypeText("FileDate", "2015-05-21");

            String FileName = GetPath() + "images/FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeSkipHelper.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeSkipHelper.WaitForWorkAround(4000);

            //Import
            resdiualIncmeSkipHelper.ClickElement("ClickOnImportBtn");
            resdiualIncmeSkipHelper.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeSkipHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeSkipHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeSkipHelper.Select("SelectStatus", "Imported");

            //Click On Calculation wizard
            resdiualIncmeSkipHelper.ClickElement("ClickOnCalculation");
            resdiualIncmeSkipHelper.WaitForWorkAround(4000);

              //###########   SKIP
            resdiualIncmeSkipHelper.ClickElement("ClickOnSkip");
            resdiualIncmeSkipHelper.WaitForWorkAround(2000);

            //Click On RevnvenueAdjmnt
            resdiualIncmeSkipHelper.ClickElement("ClickOnREnvenueAdjmnt");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            // Click To del Rule B
            resdiualIncmeSkipHelper.ClickElement("ClickTodelRuleB");
            resdiualIncmeSkipHelper.AcceptAlert();

            //Enter Rule Name
            resdiualIncmeSkipHelper.TypeText("EnterRuleName", "Rule 1");

            //Click on Selenium
            resdiualIncmeSkipHelper.ClickElement("SelectOfficeSel");

            //Select Rule Type
            resdiualIncmeSkipHelper.Select("SelectRuleType", "Amount");

            //Enter AMount
            resdiualIncmeSkipHelper.TypeText("EnterAmount", "250");

            //SelectAddRemove
            resdiualIncmeSkipHelper.Select("SelectAddRemove", "Add");

            //Click ON Save button
            resdiualIncmeSkipHelper.ClickElement("ClickToSaveRule");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            // Calculate Payout
            resdiualIncmeSkipHelper.ClickElement("CalculatePayout");
            resdiualIncmeSkipHelper.WaitForWorkAround(8000);

            // Publish Payout
            resdiualIncmeSkipHelper.ClickElement("PublishPayout");
               //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeSkipHelper.WaitForWorkAround(8000);

            //##############        FILTER
            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeSkipHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeSkipHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeSkipHelper.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeSkipHelper.Select("SelectStatus", "Published");
            resdiualIncmeSkipHelper.WaitForWorkAround(3000);

            //Click on Office Payout
            resdiualIncmeSkipHelper.ClickElement("ViewOfficePayout");
            resdiualIncmeSkipHelper.WaitForWorkAround(15000);

            //#######################   VERIFY TEXT PRESENT

               // Verify 500
            resdiualIncmeSkipHelper.VerifyPageText("500.00");

            // Verify850
            resdiualIncmeSkipHelper.VerifyPageText("850.00");

            // Verify400
            resdiualIncmeSkipHelper.VerifyPageText("400.00");

            // Verify500
            resdiualIncmeSkipHelper.VerifyPageText("750.00");

            // Verify500
            resdiualIncmeSkipHelper.VerifyPageText("300.00");
            resdiualIncmeSkipHelper.WaitForWorkAround(5000);
        }
        public void resdualIncomeAdjustmentTool()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResidualIncmeAdjustmentToolHelper residualIncmeAdjustmentToolHelper = new ResidualIncmeAdjustmentToolHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             residualIncmeAdjustmentToolHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            residualIncmeAdjustmentToolHelper.redirectToPage();
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(3000);

            //###############3  Verify Text Present
            residualIncmeAdjustmentToolHelper.VerifyPageText("Rule F");

            residualIncmeAdjustmentToolHelper.VerifyPageText("Rule E");

            residualIncmeAdjustmentToolHelper.VerifyPageText("Rule D");

            residualIncmeAdjustmentToolHelper.VerifyPageText("Rule C");

            residualIncmeAdjustmentToolHelper.VerifyPageText("Rule B");

            residualIncmeAdjustmentToolHelper.VerifyPageText("Rule A");

            //Click On A
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnA");

            //Select ALl
            residualIncmeAdjustmentToolHelper.ClickElement("ClickSelectAll");

            //Select Rule Type
            residualIncmeAdjustmentToolHelper.Select("RuleTYpe", "Percentage");

            //Enter Amount
            residualIncmeAdjustmentToolHelper.TypeText("Amount", "50");

            //Add Amount
            residualIncmeAdjustmentToolHelper.Select("AddAmount", "Add");

            //Click On SaveBtn
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnSaveBtn");
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(4000);

            //Click On B
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnB");

            //Select Selenium
            residualIncmeAdjustmentToolHelper.ClickElement("Selenium");

            //Select Rule Type
            residualIncmeAdjustmentToolHelper.Select("RuleTYpe", "Amount");

            //Enter Amount
            residualIncmeAdjustmentToolHelper.TypeText("Amount", "100");

            //Add Amount
            residualIncmeAdjustmentToolHelper.Select("AddAmount", "Add");

            //Click On SaveBtn
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnSaveBtn");
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(4000);

            //Click On c
            residualIncmeAdjustmentToolHelper.ClickElement("ClcikOnC");

            //Select Selenium
            residualIncmeAdjustmentToolHelper.ClickElement("SelectSel");

            //Select Rule Type
            residualIncmeAdjustmentToolHelper.Select("RuleTYpe", "Amount");

            //Enter Amount
            residualIncmeAdjustmentToolHelper.TypeText("Amount", "50");

            //Add Amount
            residualIncmeAdjustmentToolHelper.Select("AddAmount", "Remove");

            //Click On SaveBtn
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnSaveBtn");
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(4000);

            //Click On D
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnD");

            //Select Processor Type
            residualIncmeAdjustmentToolHelper.Select("SelectProcessorType", "WorldPay");

            //Select Selenium
            residualIncmeAdjustmentToolHelper.ClickElement("ClickSelectAll");

            //Select Rule Type
            residualIncmeAdjustmentToolHelper.Select("RuleTYpe", "Percentage");

            //Enter Amount
            residualIncmeAdjustmentToolHelper.TypeText("Amount", "50");

            //Add Amount
            residualIncmeAdjustmentToolHelper.Select("AddAmount", "Add");

            //Click On SaveBtn
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnSaveBtn");
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(4000);

            //Click On E
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnE");

            //Select Processor Type
            residualIncmeAdjustmentToolHelper.Select("SelectProcessorType", "WorldPay");

            //Select Selenium
            residualIncmeAdjustmentToolHelper.ClickElement("Selenium");

            //Select Rule Type
            residualIncmeAdjustmentToolHelper.Select("RuleTYpe", "Amount");

            //Enter Amount
            residualIncmeAdjustmentToolHelper.TypeText("Amount", "100");

            //Add Amount
            residualIncmeAdjustmentToolHelper.Select("AddAmount", "Add");

            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnSaveBtn");
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(4000);

            //Click On F
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnF");

            //Select Processor Type
            residualIncmeAdjustmentToolHelper.Select("SelectProcessorType", "WorldPay");

            //Select Selenium
            residualIncmeAdjustmentToolHelper.ClickElement("SelectSel");

            //Select Rule Type
            residualIncmeAdjustmentToolHelper.Select("RuleTYpe", "Amount");

            //Enter Amount
            residualIncmeAdjustmentToolHelper.TypeText("Amount", "50");

            //Add Amount
            residualIncmeAdjustmentToolHelper.Select("AddAmount", "Remove");

               //Click On SaveBtn
            residualIncmeAdjustmentToolHelper.ClickElement("ClickOnSaveBtn");
            residualIncmeAdjustmentToolHelper.WaitForWorkAround(4000);
        }
        public void residualIcomeImportFile()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResdiualIncmeFstDataNrthHelper resdiualIncmeFstDataNrthHelper = new ResdiualIncmeFstDataNrthHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelper.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelper.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelper.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(5000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelper.Select("ReportingPeriod", "11");

            //File Date
            resdiualIncmeFstDataNrthHelper.TypeText("FileDate", "2015-05-21");

            String FileName = GetPath() + "images/FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelper.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelper.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(6000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelper.Select("SelectFiletReportingPeriod", "November 2015");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelper.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelper.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelper.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelper.Select("SelectStatus", "Imported");
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(4000);
        }
        public void residualIncmeImportFirstDatanorthRevenueShareSet()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            ResdiualIncmeFstDataNrthHelperRevnueShareSet resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016");

            //File Date
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileDate", "2015-05-21");

            String FileName = GetPath() + "images/FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported");

            //#############   CALCULATION WIZARD

            //Click On Calculation wizard
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnStep1");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("SeleniumOffive25", "25.0000");

            // Click On Apply CheckBox
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("Sel10", "10.0000");

            //Click ON Save button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalucationSaveBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SkipStep2");

              /*         // Click On SetUp OverRide Revenue
                    resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnRevenueAdjustment");
                    resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

                        //Enter Rule set name
                         resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("EnterRuleSet", "TestR");

                    //Click On Save button
                    resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSavebtn");
                    resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);          */

            // Publish Payout
              //  resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("CalculatePayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
              //      resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            // Publish Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published");

            //Click on Office Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ViewOfficePayout");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            //Verify text
            resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("600.00");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("250.00");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("300.00");
        }
        public void residualIncomeReportsSendAllOfficeCSVExcelPDF()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResdiualIncmeSkipHelper resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            ResdiualIncmeFstDataNrthHelperRevnueShareSet resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Goto URL
             GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/rir/reports");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Select Reporting Period
             resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriodReport", "2015-11-01");

            //Select File Date
             resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FileDate1", "");

            //Click on search
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("Search");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Verify text
            resdiualIncmeFstDataNrthHelperRevnueShareSet.VerifyPageText("November 2015");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Select All Office
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MassEmailSelectAll");

            //MailPDF
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MailPDF");

             //Send Excel
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SendEmailOff");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

             //Goto URL
             GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/rir/reports");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

             //Select Reporting Period
             resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriodReport", "2015-11-01");

             //Select File Date
             resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FileDate1", "");

             //Click on search
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("Search");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

             //Select All Office
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MassEmailSelectAll");

            //MailPDF
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("EmailExcel");

             //Send PDF
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SendEmailOff");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

             //Goto URL
             GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/rir/reports");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

             //Select Reporting Period
             resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriodReport", "2015-11-01");

             //Select File Date
             resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FileDate1", "");

             //Click on search
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("Search");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

             //Select All Office
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("MassEmailSelectAll");

             //MailPDF
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("EmailCSV");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //Email CSV
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("SendEmailOff");
             resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);
        }
Esempio n. 24
0
        public void createOmahaAuthGrid()
        {
            //    string[] username = null;
             //   string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //    username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            CreateOmahaAuthGripCorpHelper createOmahaAuthGripCorpHelper = new CreateOmahaAuthGripCorpHelper(GetWebDriver());

            //Variable
            String name = "3" + RandomNumber(1, 99);
            String code = "1" + RandomNumber(1,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.");

            //Click on Clients in Topmenu
            //            clientHelper.clickClients();

            //Click to open client info
               //         clientHelper.OpenClient();

            //################################# MASTER DATA #############################################

            //Click on MASTER DATA
            createOmahaAuthGripCorpHelper.ClickElement("ClickOnMasterDataTab");

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

            //Redirect To URL
            createOmahaAuthGripCorpHelper.RedirectToPage();

            //################################# Create Product tab #############################################

            // Click On Create
            createOmahaAuthGripCorpHelper.ClickElement("ClickOnCreate");

            //Enter Grid Id
            createOmahaAuthGripCorpHelper.TypeText("GridId", name);

            //Enter Visa Pos Authfees
            createOmahaAuthGripCorpHelper.TypeText("VisaPosAuthfees", code);

            //Enter MC Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("MCPosAuthFees", name);

            //Enter Amex Pos AuthFees
            createOmahaAuthGripCorpHelper.TypeText("AmexPosAuthFees", name);

            //Enter Disc Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("DiscPosAuthFees", code);

            //Enter JCD Pos Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("JCDPosAuthFees", name);

            //Enter Voice Auth Fees
            createOmahaAuthGripCorpHelper.TypeText("VoiceAuthFees", code);

            //Enter AVS Electronic Fees
            createOmahaAuthGripCorpHelper.TypeText("AVSElectronicFees", name);

            //Enter AVS Voice Fees
            createOmahaAuthGripCorpHelper.TypeText("AVSVoiveFees", code);

            //Enter AVS Voive Fees
            createOmahaAuthGripCorpHelper.TypeText("ARUFees", name);

              //  Click on Save button
            createOmahaAuthGripCorpHelper.ClickElement("SaveBtn");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);

            //Verify Page Text
            createOmahaAuthGripCorpHelper.VerifyPageText("Corporate Master Omaha Auth Grid Created Successfully.");
            createOmahaAuthGripCorpHelper.WaitForWorkAround(3000);
        }
Esempio n. 25
0
        public void languagePushToOffice()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var createProcessorHelper = new CreateProcessorHelper(GetWebDriver());
            var createLanguageHelper = new CreateLanguageHelper(GetWebDriver());

            //Variable
            var mail = "Test" + RandomNumber(1, 99) + "@yopmail.com";
            var numb = "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.");

            //Clcik on Master Data
            createLanguageHelper.ClickElement("ClickOnMasterTabCorp");

            //Redirect To Language
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/languages");
             //   createLanguageHelper.ClickElement("LanguagesCorp");

            //Click On Create Btn
            createLanguageHelper.ClickElement("CreateNewLang");

            //Enter Language Name
            var lang = "PUSH TO OFFICE" + RandomNumber(99,999);
            createLanguageHelper.TypeText("CorpLanguage", lang);

            //Clcik on Master Data
            createLanguageHelper.ClickElement("SaveLang");
            createLanguageHelper.WaitForWorkAround(2000);

            //Verify Text
            createLanguageHelper.VerifyPageText("Language Created Successfully");
            createLanguageHelper.WaitForWorkAround(2000);

            //Click on Push To Office
            createLanguageHelper.ClickElement("PushToOfficeLang");

            //Click ok To Confirm
            createLanguageHelper.AcceptAlert();
            createLanguageHelper.WaitForWorkAround(2000);

            //Verify Confirmation Languges Successfully Pushed to Offices.
            createLanguageHelper.VerifyPageText("Languges Successfully Pushed to Offices.");
            createLanguageHelper.WaitForWorkAround(2000);

            // Logout button
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");

             //################### OFFICE SIDE

            //Login with valid credential  Username
            createProcessorHelper.TypeText("EnterUsernameOff", "AslamKhan");

            //Login with valid credential password
            createProcessorHelper.TypeText("EnterPasswordOff", "1qaz!QAZ");

            //Click On Login Button
            createProcessorHelper.ClickElement("ClickOnLoginButtojn");

            //Mover HoverWelcome
            createProcessorHelper.MouseHover("WelcomeMoveHover");

            // Click ON Admin
            createProcessorHelper.ClickElement("ClickOnAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Click On Mater
            createProcessorHelper.ClickElement("ClickOnMaterOff");

            //Redirect to Procesosr
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/languages");

            //Search pushed language
            createLanguageHelper.TypeText("SearchLanguageOffice", lang);
            createLanguageHelper.WaitForWorkAround(5000);

            //Verify
            createLanguageHelper.VerifyPageText(lang);
            createLanguageHelper.WaitForWorkAround(2000);
        }
Esempio n. 26
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);
        }
        public void residualIncomeRevenueShareSetup()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            ResidualIncmeRevneShareHelper residualIncmeRevneShareHelper = new ResidualIncmeRevneShareHelper(GetWebDriver());

            //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");

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

             //Click on Residual Income tab
             residualIncmeRevneShareHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            residualIncmeRevneShareHelper.redirectToPage();

            //Processor
            residualIncmeRevneShareHelper.Select("ProcessorType", "First Data North");
            residualIncmeRevneShareHelper.WaitForWorkAround(6000);

            //Set Values
            residualIncmeRevneShareHelper.TypeText("EnterValuesSeleniumOff", "50.0000");

            residualIncmeRevneShareHelper.TypeText("EnterSelValue", "0.0000");

            //Click ON SAVE
            residualIncmeRevneShareHelper.ClickElement("ClickOnSave");
            residualIncmeRevneShareHelper.WaitForWorkAround(3000);

            //Click on Residual Income tab
            residualIncmeRevneShareHelper.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            residualIncmeRevneShareHelper.redirectToPage();

            //Processor
            residualIncmeRevneShareHelper.Select("ProcessorType", "WorldPay");
            residualIncmeRevneShareHelper.WaitForWorkAround(5000);

            //Set Values
            residualIncmeRevneShareHelper.TypeText("EnterValuesSeleniumOff", "10.0000");

            residualIncmeRevneShareHelper.TypeText("EnterSelValue", "20.0000");

            //Click ON SAVE
            residualIncmeRevneShareHelper.ClickElement("ClickOnSave");
            residualIncmeRevneShareHelper.WaitForWorkAround(3000);
        }
        public void createResdualIncomeAdjustmentTool()
        {
            //   string[] username = null;
               //     string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

             //   username = oXMLData.getData("settings/Credentials", "username");
            //    password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            LoginAsCorpHelper loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            CreateResidualIncmeAdjustmenRuleHelper createResidualIncmeAdjustmenRuleHelper = new CreateResidualIncmeAdjustmenRuleHelper(GetWebDriver());

            //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(4000);

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

             //Click on Residual Income tab
            createResidualIncmeAdjustmenRuleHelper.ClickElement("ClickOnResidualIncome");

            //Click to Import
            createResidualIncmeAdjustmenRuleHelper.redirectToPage();

            //Click On Create Btn
            createResidualIncmeAdjustmenRuleHelper.ClickElement("ClickOnCreateBtn");
            createResidualIncmeAdjustmenRuleHelper.WaitForWorkAround(5000);

            //Select Processor Type
            createResidualIncmeAdjustmenRuleHelper.Select("ProcessorType", "First Data North");

            //Enter Rule Set Name
            createResidualIncmeAdjustmenRuleHelper.TypeText("EnterRuleSetName", "Test Rule 1");

            //#################  CREATE RULE SET

            //Rule Type
            createResidualIncmeAdjustmenRuleHelper.Select("SelectRuleType", "Amount");

            //Enter Amount
            createResidualIncmeAdjustmenRuleHelper.TypeText("Amount", "200");

            //Select AddRemove
            createResidualIncmeAdjustmenRuleHelper.Select("AddRemove", "Add");

               //Click On SaveBtn
            createResidualIncmeAdjustmenRuleHelper.ClickElement("ClickOnSaveBtn");
            createResidualIncmeAdjustmenRuleHelper.WaitForWorkAround(4000);
        }