public void rateAndFeesPushToOfficeBtn()
        {
            string[] username = null;
            string[] password = null;
            String   JIRA     = "";
            String   Status   = "Pass";


            var oXMLData = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

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

            // Initializing the objects
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var corpMasterdata_RatesAndFeesHelper = new CorpMasterdata_RatesAndFeesHelper(GetWebDriver());

            // Variable
            var name = "PushToOffice" + RandomNumber(33, 999);
            var Code = "1" + RandomNumber(1, 99);

            try
            {
                executionLog.Log("RateAndFeesPushToOfficeBtn", "Login with valid credential  Username");
                Login(username[0], password[0]);

                executionLog.Log("RateAndFeesPushToOfficeBtn", "Verify Page title");
                VerifyTitle("Dashboard");
                Console.WriteLine("Redirected at Dashboard screen.");

                executionLog.Log("RateAndFeesPushToOfficeBtn", "Navigate to rates and fees page");
                VisitCorp("masterdata/rates_fees");

                executionLog.Log("RateAndFeesPushToOfficeBtn", "Click on Push To Office Button");
                corpMasterdata_RatesAndFeesHelper.VerifyText("ClickOnPushOffice", "Push to Offices");
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000);
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("RateAndFeesPushToOfficeBtn");
                String Error       = executionLog.GetAllTextFile("Error");
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Rate And Fees Push To Office Btn");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Rate And Fees Push To Office Btn", "Bug", "Medium", "Rates and fee page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Rate And Fees Push To Office Btn");
                        TakeScreenshot("RateAndFeesPushToOfficeBtn");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\RateAndFeesPushToOfficeBtn.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("RateAndFeesPushToOfficeBtn");
                        string id            = loginHelper.getIssueID("Rate And Fees Push To Office Btn");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\RateAndFeesPushToOfficeBtn.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Rate And Fees Push To Office Btn"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Rate And Fees Push To Office Btn");
                //  executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("RateAndFeesPushToOfficeBtn");
                executionLog.WriteInExcel("Rate And Fees Push To Office Btn", Status, JIRA, "Corp Master Data");
            }
        }
        public void ratesAndFeesCloneIssue()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();

            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            // Initializing the objects
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var corpMasterdata_RatesAndFeesHelper = new CorpMasterdata_RatesAndFeesHelper(GetWebDriver());

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

            // Variable
            var TemplateName = "Test" + GetRandomNumber();
            var Clone        = "Clone of " + TemplateName;

            String JIRA   = "";
            String Status = "Pass";

            try
            {
                executionLog.Log("RatesAndFeesCloneIssue", "Login with valid credentials");
                Login(username[0], password[0]);
                Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

                executionLog.Log("RatesAndFeesCloneIssue", "Verify Page title");
                VerifyTitle("Dashboard");
                Console.WriteLine("Redirected at Dashboard screen.");

                executionLog.Log("RatesAndFeesCloneIssue", "Redirect To URL");
                VisitCorp("masterdata/manage_rates_fees");
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000);

                executionLog.Log("RatesAndFeesCloneIssue", "Verify Page title");
                VerifyTitle("Manage Master Rates & Fees");
                //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000);

                executionLog.Log("RatesAndFeesCloneIssue", "Enter template name");
                corpMasterdata_RatesAndFeesHelper.TypeText("PricingTemplateName", TemplateName);

                executionLog.Log("RatesAndFeesCloneIssue", "Select Processor Type");
                corpMasterdata_RatesAndFeesHelper.SelectByText("ProcessorType", "First Data Omaha");
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000);

                executionLog.Log("RatesAndFeesCloneIssue", "Select Merchant Type");
                corpMasterdata_RatesAndFeesHelper.SelectByText("SelectMerchanType", "Ecommerce");
                //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000);

                executionLog.Log("RatesAndFeesCloneIssue", "Method of accepting card");
                corpMasterdata_RatesAndFeesHelper.SelectByText("MethodOfAcceptingCards", "Ecommerce");
                //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000);

                executionLog.Log("RatesAndFeesCloneIssue", "Select Discount Frequency");
                corpMasterdata_RatesAndFeesHelper.SelectByText("DiscountFrequency", "Monthly");
                //corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000);

                executionLog.Log("RatesAndFeesCloneIssue", "Select Debit Network InterFace Pass Through");
                corpMasterdata_RatesAndFeesHelper.SelectByText("DebitNetworkInterFacePassThrough", "Yes");

                executionLog.Log("RatesAndFeesCloneIssue", "Click on Save Rates And fees");
                corpMasterdata_RatesAndFeesHelper.ForceClick("SaveEdit");

                executionLog.Log("RatesAndFeesCloneIssue", "Verify Text The Rates is successfully created!!");
                corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully created!!", 10);

                executionLog.Log("RatesAndFeesCloneIssue", "Search Rate and fee by template name");
                corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", TemplateName);
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000);

                executionLog.Log("RatesAndFeesCloneIssue", "Click On Copy Master Rates and fee.");
                corpMasterdata_RatesAndFeesHelper.ClickElement("CloneRatesAndFee");
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000);

                executionLog.Log("RatesAndFeesCloneIssue", "Click On Save button");
                corpMasterdata_RatesAndFeesHelper.ForceClick("SaveEdit");
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(3000);

                executionLog.Log("RatesAndFeesCloneIssue", "Search Cloned Rates and fee.");
                corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", Clone);
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000);

                executionLog.Log("RatesAndFeesCloneIssue", "Verify clone rates and fee.");
                corpMasterdata_RatesAndFeesHelper.VerifyText("Clone1", Clone);

                executionLog.Log("RatesAndFeesCloneIssue", "Search Rate and fee");
                corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", TemplateName);
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000);

                executionLog.Log("RatesAndFeesCloneIssue", "Click On Delete");
                corpMasterdata_RatesAndFeesHelper.ClickElement("ClickOnDelete");

                executionLog.Log("RatesAndFeesCloneIssue", "Accept Alert");
                corpMasterdata_RatesAndFeesHelper.AcceptAlert();

                executionLog.Log("RatesAndFeesCloneIssue", "Verify Text");
                corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully deleted!!", 40);
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(4000);

                executionLog.Log("RatesAndFeesCloneIssue", "Search Rate and fee");
                corpMasterdata_RatesAndFeesHelper.TypeText("SearchTemp", Clone);
                corpMasterdata_RatesAndFeesHelper.WaitForWorkAround(2000);

                executionLog.Log("RatesAndFeesCloneIssue", "Click On Delete");
                corpMasterdata_RatesAndFeesHelper.ClickElement("ClickOnDelete");

                executionLog.Log("RatesAndFeesCloneIssue", "Accept Alert");
                corpMasterdata_RatesAndFeesHelper.AcceptAlert();

                executionLog.Log("RatesAndFeesCloneIssue", "Verify Text");
                corpMasterdata_RatesAndFeesHelper.WaitForText("The Rates is successfully deleted!!", 40);
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("RatesAndFeesCloneIssue");
                String Error       = executionLog.GetAllTextFile("Error");
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Rates And Fees Clone Issue");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Rates And Fees Clone Issue", "Bug", "Medium", "rates And Fees page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Rates And Fees Clone Issue");
                        TakeScreenshot("RatesAndFeesCloneIssue");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\RatesAndFeesCloneIssue.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("RatesAndFeesCloneIssue");
                        string id            = loginHelper.getIssueID("Rates And Fees Clone Issue");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\RatesAndFeesCloneIssue.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Rates And Fees Clone Issue"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Rates And Fees Clone Issue");
                //     executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("RatesAndFeesCloneIssue");
                executionLog.WriteInExcel("Rates And Fees Clone Issue", Status, JIRA, "Office Master Data");
            }
        }