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

            XMLParse oXMLData = new XMLParse();

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

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

            //Initializing the objects
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var office_FieldDictionary_TabsHelper = new Office_FieldDictionary_TabsHelper(GetWebDriver());
            var office_ClientHelper = new Office_ClientsHelper(GetWebDriver());

            //Variable
            var    name   = "Test" + GetRandomNumber();
            var    num    = "Test" + GetRandomNumber();
            String JIRA   = "";
            String Status = "Pass";

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

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

                executionLog.Log("CreateClientTabsMasterData", "Click On  Admin");
                VisitOffice("admin");

                executionLog.Log("CreateClientTabsMasterData", "Redirect To URL");
                VisitOffice("tabs");

                executionLog.Log("CreateClientTabsMasterData", "Verify title");
                VerifyTitle("Tabs Management");

                executionLog.Log("CreateClientTabsMasterData", "Select lead");
                office_FieldDictionary_TabsHelper.Select("TabsIn", "20");

                executionLog.Log("CreateClientTabsMasterData", "Click Create Btn");
                office_FieldDictionary_TabsHelper.ClickElement("Create");
                office_FieldDictionary_TabsHelper.WaitForWorkAround(1000);

                executionLog.Log("CreateClientTabsMasterData", "Enter Name");
                office_FieldDictionary_TabsHelper.TypeText("Name", name);

                executionLog.Log("CreateClientTabsMasterData", "Click on save button");
                office_FieldDictionary_TabsHelper.ClickElement("Save");

                executionLog.Log("CreateClientTabsMasterData", "Wait for text");
                office_FieldDictionary_TabsHelper.WaitForText("Tab Created Successfully", 30);

                executionLog.Log("CreateClientTabsMasterData", "Click On  Admin");
                VisitOffice("clients");

                executionLog.Log("CreateClientTabsMasterData", "Verify title");
                VerifyTitle();

                executionLog.Log("CreateClientTabsMasterData", "Click On Any Client");
                office_ClientHelper.ClickElement("Client1");

                executionLog.Log("CreateClientTabsMasterData", "Verify title");
                VerifyTitle("- Details");

                executionLog.Log("CreateClientTabsMasterData", "Verify text present");
                office_FieldDictionary_TabsHelper.WaitForText(name, 30);

                executionLog.Log("CreateClientTabsMasterData", "Redirect To URL");
                VisitOffice("tabs");

                executionLog.Log("CreateClientTabsMasterData", "Verify title");
                VerifyTitle("Tabs Management");
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("CreateClientTabsMasterData");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Create Client Tabs Master Data");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Create Client Tabs Master Data", "Bug", "Medium", "Tab page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Create Client Tabs Master Data");
                        TakeScreenshot("CreateClientTabsMasterData");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CreateClientTabsMasterData.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("CreateClientTabsMasterData");
                        string id            = loginHelper.getIssueID("Create Client Tabs Master Data");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CreateClientTabsMasterData.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Create Client Tabs Master Data"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Create Client Tabs Master Data");
                //    executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("CreateClientTabsMasterData");
                executionLog.WriteInExcel("Create Client Tabs Master Data", Status, JIRA, "Client Management");
            }
        }
        public void officeFieldDictionary()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

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

            // Initializing the objects5
            var executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var office_FieldDictionary_SectionsHelper = new Office_FieldDictionary_SectionsHelper(GetWebDriver());
            var office_FieldDictionary_TabsHelper     = new Office_FieldDictionary_TabsHelper(GetWebDriver());

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

            // Variable
            var    TabNameFDic = "Test" + RandomNumber(99, 99999);
            var    FDNAME      = "Test" + RandomNumber(99, 99999) + "te";
            var    idsc        = "1" + RandomNumber(1, 99999);
            var    CDBA        = "New" + RandomNumber(99, 99999);
            String JIRA        = "";
            String Status      = "Pass";

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

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

                executionLog.Log("OfficeFieldDictionary", "Goto Office Tab");
                VisitOffice("tabs");

                executionLog.Log("OfficeFieldDictionary", "Click Add New Tab");
                office_FieldDictionary_TabsHelper.ClickElement("Create");
                office_FieldDictionary_TabsHelper.WaitForWorkAround(3000);

                executionLog.Log("OfficeFieldDictionary", "Enter Tab Name");
                office_FieldDictionary_TabsHelper.TypeText("Name", TabNameFDic);

                executionLog.Log("OfficeFieldDictionary", "Click on Save");
                office_FieldDictionary_TabsHelper.ClickOnDisplayed("Save");

                executionLog.Log("OfficeFieldDictionary", "Confirmation");
                office_FieldDictionary_TabsHelper.WaitForText("Tab Created Successfully", 10);

                executionLog.Log("OfficeFieldDictionary", "Goto Sections");
                VisitOffice("sections");

                executionLog.Log("OfficeFieldDictionary", "Click on Create Button");
                office_FieldDictionary_SectionsHelper.ClickElement("Create");
                office_FieldDictionary_SectionsHelper.WaitForWorkAround(4000);

                executionLog.Log("OfficeFieldDictionary", "Select Tab Name");
                office_FieldDictionary_SectionsHelper.SelectByText("TabName", TabNameFDic);

                executionLog.Log("OfficeFieldDictionary", "Enter Section Name");
                office_FieldDictionary_SectionsHelper.TypeText("Name", FDNAME);

                executionLog.Log("OfficeFieldDictionary", "Click Save");
                office_FieldDictionary_SectionsHelper.ClickOnDisplayed("Save");

                executionLog.Log("OfficeFieldDictionary", "Verify Alert text.");
                office_FieldDictionary_SectionsHelper.VerifyAlertText("Section Created Successfully");
                office_FieldDictionary_TabsHelper.AcceptAlert();
                office_FieldDictionary_TabsHelper.WaitForWorkAround(3000);

                executionLog.Log("OfficeFieldDictionary", "Goto Tabs");
                VisitOffice("tabs");

                executionLog.Log("OfficeFieldDictionary", "Click Edit");
                office_FieldDictionary_TabsHelper.ClickElement("ClickOnEditTabIcon");
                office_FieldDictionary_TabsHelper.WaitForWorkAround(3000);

                executionLog.Log("OfficeFieldDictionary", "Click Save Button");
                office_FieldDictionary_TabsHelper.Click("//*[@id='dialog_tabedit']//div[3]/button[1]");

                executionLog.Log("OfficeFieldDictionary", "Wait for Confirmation");
                office_FieldDictionary_TabsHelper.WaitForText("Tab Updated Successfully", 10);
            }

            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("OfficeFieldDictionary");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("OfficeFieldDictionary");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("OfficeFieldDictionary", "Bug", "Medium", "Field Dictionary page", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("OfficeFieldDictionary");
                        TakeScreenshot("OfficeFieldDictionary");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\Iframe.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("OfficeFieldDictionary");
                        string id            = loginHelper.getIssueID("OfficeFieldDictionary");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\OfficeFieldDictionary.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("OfficeFieldDictionary"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("OfficeFieldDictionary");
                //     executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("OfficeFieldDictionary");
                executionLog.WriteInExcel("OfficeFieldDictionary", Status, JIRA, "Office Field Dictionary");
            }
        }
        public void verifyClientTabs()
        {
            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 executionLog = new ExecutionLog();
            var loginHelper  = new LoginHelper(GetWebDriver());
            var office_FieldDictionary_TabsHelper = new Office_FieldDictionary_TabsHelper(GetWebDriver());
            var office_ClientHelper = new Office_ClientsHelper(GetWebDriver());

            //Variable
            var    name   = "Test" + GetRandomNumber();
            var    num    = "Test" + GetRandomNumber();
            String JIRA   = "";
            String Status = "Pass";

            //         try
            //       {

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

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

            executionLog.Log("VerifyClientTabs", "Click On  Admin");
            VisitOffice("admin");

            executionLog.Log("VerifyClientTabs", "Redirect To URL");
            VisitOffice("tabs");

            executionLog.Log("VerifyClientTabs", "Verify title");
            VerifyTitle("Tabs Management");

            executionLog.Log("VerifyClientTabs", "Select lead");
            office_FieldDictionary_TabsHelper.Select("TabsIn", "20");

            executionLog.Log("VerifyClientTabs", "Click Create Btn");
            office_FieldDictionary_TabsHelper.ClickElement("Create");
            office_FieldDictionary_TabsHelper.WaitForWorkAround(1000);

            executionLog.Log("VerifyClientTabs", "Enter Name");
            office_FieldDictionary_TabsHelper.TypeText("Name", name);

            executionLog.Log("VerifyClientTabs", "Click on save button");
            office_FieldDictionary_TabsHelper.ClickElement("Save");

            executionLog.Log("VerifyClientTabs", "Wait for success text.");
            office_FieldDictionary_TabsHelper.WaitForText("Tab Created Successfully", 10);

            executionLog.Log("VerifyClientTabs", "Redirect at clients page.");
            VisitOffice("clients");

            executionLog.Log("VerifyClientTabs", "Verify title");
            VerifyTitle("Clients");

            executionLog.Log("VerifyClientTabs", "Click On Any Client");
            office_ClientHelper.ClickElement("Client1");

            executionLog.Log("VerifyClientTabs", "Verify title");
            VerifyTitle("- Details");

            executionLog.Log("VerifyClientTabs", "Verify tab present on client page.");
            office_FieldDictionary_TabsHelper.WaitForText(name, 30);

            executionLog.Log("VerifyClientTabs", "Redirect To URL");
            VisitOffice("tabs");

            executionLog.Log("VerifyClientTabs", "Verify title");
            VerifyTitle("Tabs Management");
        }