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 residualIncmeImportFirstDatanorth()
        {
            //   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(3000);

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

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

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

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

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

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

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

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

            //Clcik On Skip Step 2
            resdiualIncmeFstDataNrthHelper.ClickElement("ClickOnSkip1");

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

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

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

            //Select Filter For Published
            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", "Published");
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(4000);

            //Click on Office Payout
            resdiualIncmeFstDataNrthHelper.ClickElement("ViewOfficePayout");
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(9000);

            //Verify Text Presents
            //Custom Adjustment
            resdiualIncmeFstDataNrthHelper.VerifyPageText("350.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("700.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("250.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("600.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("300.00");
            resdiualIncmeFstDataNrthHelper.WaitForWorkAround(1000);

            //Custom Adjustment
            /*            resdiualIncmeFstDataNrthHelper.VerifyPageText("425.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("950.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("275.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("800.00");

            resdiualIncmeFstDataNrthHelper.VerifyPageText("0.00");   */
        }