public void amexRatesPushToOffice()
        {
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var createProcessorHelper = new CreateProcessorHelper(GetWebDriver());
            var createAmexRateHelper = new CreateAmexRateHelper(GetWebDriver());

            //Variable
            var Num = "1" + RandomNumber(1, 999);
            var Nam = "New" + RandomNumber(1, 999);
            var name = "Test" + RandomNumber(1, 99);

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

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

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

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

            //Click on Residual Income tab
            createAmexRateHelper.ClickElement("ClickMasterTab");

            //Click to Import
            createAmexRateHelper.redirectToPage();

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

            //Enter Processor name
            createAmexRateHelper.TypeText("MCCCode", Num);

            //Enter ProcessorCode
            createAmexRateHelper.TypeText("AmexRate", name);

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

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

            //Click On Push Office
            createAmexRateHelper.ClickElement("ClickOnPushOffice");
            createAmexRateHelper.WaitForWorkAround(2000);

            //Accept Alert To Confirm Action
            createAmexRateHelper.AcceptAlert();
            createAmexRateHelper.WaitForWorkAround(5000);

            //################  LOGOUT ######################3

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

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

            //################### 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 Amex Rate Office >> Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/amex_rates");
              //  createAmexRateHelper.ClickElement("ClickOnAmexRateAdmin");
            createProcessorHelper.WaitForWorkAround(4000);

            //Search with  MCC Codes
            createAmexRateHelper.TypeText("SecrhMCCCodes", Num);
            createAmexRateHelper.WaitForWorkAround(2000);

            //Verify
            createAmexRateHelper.VerifyPageText(Num);
        }
        public void editAndDeleteAmexRates()
        {
            //   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 createAmexRateHelper = new CreateAmexRateHelper(GetWebDriver());

            //Variable
            var Num = "1" + RandomNumber(1, 999);
            var Nam = "New" + RandomNumber(1, 999);
            var name = "Test" + RandomNumber(1, 99);

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

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

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

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

            //Click on Residual Income tab
            createAmexRateHelper.ClickElement("ClickMasterTab");

            //Click to Import
            createAmexRateHelper.redirectToPage();

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

            //Enter Processor name
            createAmexRateHelper.TypeText("MCCCode", Num);

            //Enter ProcessorCode
            createAmexRateHelper.TypeText("AmexRate", name);

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

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

            //Verify Text The Amex Rates is successfully created!!
            createAmexRateHelper.VerifyPageText("The Amex Rates is successfully created!!");

            //Search with  MCC Codes
            createAmexRateHelper.TypeText("SecrhMCCCodes", Num);
            createAmexRateHelper.WaitForWorkAround(2000);

            //Click on Edit Save
            createAmexRateHelper.ClickElement("ClickOnEDit");

            //Enter ProcessorCode
            createAmexRateHelper.TypeText("AmexRate", name);

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

            //Click on Edit Save
            createAmexRateHelper.ClickElement("ClickOnSave");

            //Verify The Amex Rates is successfully updated!!
            createAmexRateHelper.VerifyPageText("The Amex Rates is successfully updated!!");
            createAmexRateHelper.WaitForWorkAround(2000);

            //Search with  MCC Codes
            createAmexRateHelper.TypeText("SecrhMCCCodes", Num);
            createAmexRateHelper.WaitForWorkAround(2000);

            //Click on delete
            createAmexRateHelper.ClickElement("ClickOnDelete");

            //Accept Alert To Confirmm
            createAmexRateHelper.AcceptAlert();
            createAmexRateHelper.WaitForWorkAround(2000);

            //Confirmation delete message
            createAmexRateHelper.VerifyPageText("The Amex Rates is successfully deleted!!");
            createAmexRateHelper.WaitForWorkAround(2000);
        }