public void employeeEadressLabelIssue()
        {
            string[] username1 = null;
            string[] password1 = null;

            var oXMLData = new XMLParse();

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

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

            var corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());

            username1 = oXMLData.getData("settings/Credentials", "username_corp");
            password1 = oXMLData.getData("settings/Credentials", "password2");

            // Variable random
            var    username = "******" + GetRandomNumber();
            var    email    = "Test" + RandomNumber(44, 999) + "@gmail.com";
            var    email2   = "test1" + RandomNumber(1, 99) + "@gmail.com";
            var    phone    = "12345" + RandomNumber(11111, 99999);
            String JIRA     = "";
            String Status   = "Pass";

            try
            {
                executionLog.Log("EmployeeEadressLabelIssue", "Login with valid username and password");
                Login(username1[0], password1[0]);

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

                executionLog.Log("EmployeeEadressLabelIssue", "Go to Employee page");
                VisitCorp("employees");

                executionLog.Log("EmployeeEadressLabelIssue", "Verify Page title");
                VerifyTitle("Employees");

                executionLog.Log("EmployeeEadressLabelIssue", "Go to Create employee page");
                VisitCorp("employees/create");

                executionLog.Log("EmployeeEadressLabelIssue", "Verify Page title");
                VerifyTitle("Employees");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter Name");
                corp_EmployeeHelper.TypeText("UserName", username);

                executionLog.Log("EmployeeEadressLabelIssue", "Enter PrimaryEmail");
                corp_EmployeeHelper.TypeText("PrimaryEmail", email);

                executionLog.Log("EmployeeEadressLabelIssue", "Enter Salutation");
                corp_EmployeeHelper.Select("Salutation", "Mr");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter First name");
                corp_EmployeeHelper.TypeText("FirstName", "Test Name");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter Last Name");
                corp_EmployeeHelper.TypeText("LastName", "Test LastName");

                executionLog.Log("EmployeeEadressLabelIssue", "  Click Corporate Admin Avatar");
                corp_EmployeeHelper.ClickElement("AvtarCorporateAdmin");

                executionLog.Log("EmployeeEadressLabelIssue", "Select Phone Country");
                corp_EmployeeHelper.Select("PhoneSelectCountry", "1");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter PhoneNumber");
                corp_EmployeeHelper.TypeText("PhoneNumber", "9898398438");

                executionLog.Log("EmployeeEadressLabelIssue", "Select Primary Phone Number");
                corp_EmployeeHelper.ClickElement("PrimaryPhoneRadio");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter eAddress");
                corp_EmployeeHelper.TypeText("eAddress", email2);

                executionLog.Log("EmployeeEadressLabelIssue", "Select Primary Email");
                corp_EmployeeHelper.ClickElement("PrimaryEmailRadio");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter AddressLine1");
                corp_EmployeeHelper.TypeText("AddressLine1", "F-TEST");

                executionLog.Log("EmployeeEadressLabelIssue", "Enter ZipCode");
                corp_EmployeeHelper.TypeText("ZipCode", "60601");

                executionLog.Log("EmployeeEadressLabelIssue", "CliCK On Save button");
                corp_EmployeeHelper.ClickElement("Save");

                executionLog.Log("EmployeeEadressLabelIssue", "Wait for confirmation.");
                corp_EmployeeHelper.WaitForText("Employee Created Successfully.", 10);

                executionLog.Log("EmployeeEadressLabelIssue", "Search created employee by email.");
                corp_EmployeeHelper.TypeText("searchEmail", email);
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("EmployeeEadressLabelIssue", "Click on edit icon");
                corp_EmployeeHelper.ClickElement("ClickOnEdit");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("EmployeeEadressLabelIssue", "Wait for locator to present.");
                corp_EmployeeHelper.WaitForElementPresent("EAddressType2", 10);

                executionLog.Log("EmployeeEadressLabelIssue", "Change eaddress type for second email.");
                corp_EmployeeHelper.Select("EAddressType2", "Social Media");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("EmployeeEadressLabelIssue", "Verify first email label not changed.");
                corp_EmployeeHelper.VerifyText("EAddressLabel1", "Work");
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("EmployeeEadressLabelIssue");
                String Error       = executionLog.GetAllTextFile("Error");
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Employee Eadress Label Issue");
                if (!result)
                {
                    if (Int16.Parse(counter) < 5)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Employee Eadress Label Issue", "Bug", "Medium", "Corp Employee page", "QA", "Log in as: " + username1[0] + " / " + password1[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Employee Eadress Label Issue");
                        TakeScreenshot("EmployeeEadressLabelIssue");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EmployeeEadressLabelIssue.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 5)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("EmployeeEadressLabelIssue");
                        string id            = loginHelper.getIssueID("Employee Eadress Label Issue");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EmployeeEadressLabelIssue.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Employee Eadress Label Issue"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Employee Eadress Label Issue");
                executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("EmployeeEadressLabelIssue");
                executionLog.WriteInExcel("Employee Eadress Label Issue", Status, JIRA, "Corp Employee");
            }
        }
Пример #2
0
        public void verifyAddressLine1and2OnEmployeeCorp()
        {
            string[] username1 = null;
            string[] password1 = null;

            var oXMLData = new XMLParse();

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

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

            // Initializing the objects
            var executionLog        = new ExecutionLog();
            var loginHelper         = new LoginHelper(GetWebDriver());
            var corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());

            // Variable random

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

            try
            {
                executionLog.Log("VerifyAddressLine1and2OnEmployeeCorp", "Login with valid username and password");
                Login(username1[0], password1[0]);

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

                executionLog.Log("VerifyAddressLine1and2OnEmployeeCorp", "Go to office page");
                VisitCorp("employees");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("VerifyAddressLine1and2OnEmployeeCorp", "Verify title as offices");
                VerifyTitle("Employees");

                executionLog.Log("VerifyAddressLine1and2OnEmployeeCorp", "Click On Advanced Filter button");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("VerifyAddressLine1and2OnEmployeeCorp", "Verify options present");
                corp_EmployeeHelper.VerifyText("AvailableCols", "Address Line 1");
                corp_EmployeeHelper.VerifyText("AvailableCols", "Address Line 2");
            }

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

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("VerifyAddressLine1and2OnEmployeeCorp");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Verify Address Line1 and 2 On Employee Corp");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Verify Address Line1 and 2 On Employee Corp", "Bug", "Medium", "Employee page", "QA", "Log in as: " + username1[0] + " / " + password1[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Verify Address Line1 and 2 On Employee Corp");
                        TakeScreenshot("VerifyAddressLine1and2OnEmployeeCorp");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\VerifyAddressLine1and2OnEmployeeCorp.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("VerifyAddressLine1and2OnEmployeeCorp");
                        string id            = loginHelper.getIssueID("Verify Address Line1 and 2 On Employee Corp");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\VerifyAddressLine1and2OnEmployeeCorp.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Verify Address Line1 and 2 On Employee Corp"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Verify Address Line1 and 2 On Employee Corp");
                //   executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("VerifyAddressLine1and2OnEmployeeCorp");
                executionLog.WriteInExcel("Verify Address Line1 and 2 On Employee Corp", Status, JIRA, "Corp Employees");
            }
        }
Пример #3
0
        public void editCorpEmployee()
        {
            string[] username = null;
            string[] password = null;

            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    corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());
            String Status    = "Pass";
            String JIRA      = "";
            var    username1 = "testingcorpuser" + RandomNumber(111, 999999);

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

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

                executionLog.Log("EditCorpEmployee", "Click on employee tab.");
                corp_EmployeeHelper.ClickElement("EmployeesTab");

                executionLog.Log("EditCorpEmployee", "Search Employee");
                corp_EmployeeHelper.TypeText("SearchEmpName", "Test Tester");

                var Loc = "//table[@id='list1']/tbody/tr[2]";
                if (corp_EmployeeHelper.IsElementPresent(Loc))
                {
                    executionLog.Log("EditCorpEmployee", "Click on Edit");
                    corp_EmployeeHelper.ClickElement("ClickOnEdit");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Enter zip code");
                    corp_EmployeeHelper.TypeText("ZipCode", "60601");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Enter First Name");
                    corp_EmployeeHelper.TypeText("FirstName", "Test");

                    executionLog.Log("EditCorpEmployee", "Enter Last Name");
                    corp_EmployeeHelper.TypeText("LastName", "Tester");

                    executionLog.Log("EditCorpEmployee", "Enter Phone number.");
                    corp_EmployeeHelper.TypeText("PhoneNumber", "1111111111");

                    executionLog.Log("EditCorpEmployee", "Click primary radio button.");
                    corp_EmployeeHelper.ClickElement("PrimaryPhoneRadio");

                    executionLog.Log("EditCorpEmployee", "Enter eAddress");
                    corp_EmployeeHelper.TypeText("eAddress", "*****@*****.**");

                    executionLog.Log("EditCorpEmployee", "Click primary radio button.");
                    corp_EmployeeHelper.ClickElement("PrimaryEmailRadio");

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("Save");

                    executionLog.Log("EditCorpEmployee", "Verify message");
                    corp_EmployeeHelper.WaitForText("Employee Details successfully updated", 10);
                }
                else
                {
                    executionLog.Log("EditCorpEmployee", "ClickOnCreate");
                    corp_EmployeeHelper.ClickElement("Create");

                    executionLog.Log("EditCorpEmployee", "Enter User Name");
                    var usernme = "EmpUser" + RandomNumber(1, 999);
                    corp_EmployeeHelper.TypeText("UserName", usernme);

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("Save");

                    executionLog.Log("EditCorpEmployee", "Verify This field is required.");
                    corp_EmployeeHelper.VerifyPageText("This field is required.");

                    executionLog.Log("EditCorpEmployee", "verify validation ");
                    corp_EmployeeHelper.VerifyPageText("This field is required.");

                    executionLog.Log("EditCorpEmployee", "verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyValidation", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyAvatar", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validatation");
                    corp_EmployeeHelper.VerifyText("VerifyEmail", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyPhoneNumber", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Verify validation");
                    corp_EmployeeHelper.VerifyText("VerifyLastName", "This field is required.");

                    executionLog.Log("EditCorpEmployee", "Enter First Name");
                    corp_EmployeeHelper.TypeText("FirstName", "Test");

                    executionLog.Log("EditCorpEmployee", "Enter Last Name");
                    corp_EmployeeHelper.TypeText("LastName", "Tester");

                    executionLog.Log("EditCorpEmployee", "Enter Primary Email");
                    var Email = "Email" + RandomNumber(1, 999) + "@yopmail.com";
                    corp_EmployeeHelper.TypeText("PrimaryEmail", Email);

                    executionLog.Log("EditCorpEmployee", "Click On Check box ");
                    corp_EmployeeHelper.ClickElement("AvtarCorporateAdmin");

                    executionLog.Log("EditCorpEmployee", "Enter Phone Number");
                    corp_EmployeeHelper.TypeText("PhoneNumber", "9898777332");

                    executionLog.Log("EditCorpEmployee", "Enter Eaddress");
                    var mail = "mail" + RandomNumber(1, 999) + "@yopmail.com";
                    corp_EmployeeHelper.TypeText("eAddress", mail);

                    executionLog.Log("EditCorpEmployee", "Enter Username");
                    corp_EmployeeHelper.TypeText("UserName", username1);

                    executionLog.Log("EditCorpEmployee", "Select Avatar");
                    corp_EmployeeHelper.ClickElement("AdminUserAvatar");

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("ClickSaveBtn");

                    executionLog.Log("EditCorpEmployee", "verify success message");
                    corp_EmployeeHelper.WaitForText("Employee Created Successfully.", 10);

                    executionLog.Log("EditCorpEmployee", "Search Employee");
                    corp_EmployeeHelper.TypeText("SearchEmpName", "Test Tester");

                    executionLog.Log("EditCorpEmployee", "Enter Email To Search");
                    corp_EmployeeHelper.TypeText("SearchEnterEmail", Email);
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Click on Edit");
                    corp_EmployeeHelper.ClickElement("ClickOnEdit");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Enter zip code");
                    corp_EmployeeHelper.TypeText("ZipCode", "60601");
                    corp_EmployeeHelper.WaitForWorkAround(3000);

                    executionLog.Log("EditCorpEmployee", "Enter First Name");
                    corp_EmployeeHelper.TypeText("FirstName", "Test");

                    executionLog.Log("EditCorpEmployee", "Enter Last Name");
                    corp_EmployeeHelper.TypeText("LastName", "Tester");

                    executionLog.Log("EditCorpEmployee", "Click On Save");
                    corp_EmployeeHelper.ClickElement("ClickOnSave");

                    executionLog.Log("EditCorpEmployee", "Verify success message");
                    corp_EmployeeHelper.WaitForText("Employee Details successfully updated", 10);
                }
            }
            catch (Exception e)
            {
                executionLog.Log("Error", e.StackTrace);
                Status = "Fail";

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("EditCorpEmployee");
                String Error       = executionLog.GetAllTextFile("Error");
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Edit Corp Employee");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Delete PDF Template Corp", "Bug", "Medium", "Employee", "QA", "Log in as: " + username[0] + " / " + password[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Edit Corp Employee");
                        TakeScreenshot("EditCorpEmployee");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EditCorpEmployee.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("EditCorpEmployee");
                        string id            = loginHelper.getIssueID("Edit Corp Employee");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\EditCorpEmployee.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Edit Corp Employee"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Edit Corp Employee");
                //   executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("EditCorpEmployee");
                executionLog.WriteInExcel("Edit Corp Employee", Status, JIRA, "Corp Employee");
            }
        }
Пример #4
0
        public void corpEmployeeAdvanceFilter2()
        {
            string[] username1 = null;
            string[] password1 = null;
            var      oXMLData  = new XMLParse();

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

            // Initializing the objects
            var executionLog        = new ExecutionLog();
            var loginHelper         = new LoginHelper(GetWebDriver());
            var corp_EmployeeHelper = new Corp_EmployeeHelper(GetWebDriver());

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

            // Variable random
            String JIRA   = "";
            String Status = "Pass";


            try
            {
                executionLog.Log("CorpEmployeeAdvanceFilter2", "Login with valid username and password");
                Login(username1[0], password1[0]);

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

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Redirect at employees page.");
                VisitCorp("employees");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify Page title");
                VerifyTitle("Employees");
                //corp_EmployeeHelper.WaitForWorkAround(5000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 10.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "10");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(10);
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 20.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "20");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(20);
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 50.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "50");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(50);
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select number of records to 100.");
                corp_EmployeeHelper.SelectByText("ResultsPerPage", "100");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify number of records displayed.");
                corp_EmployeeHelper.ShowResult(100);
                //corp_EmployeeHelper.WaitForWorkAround(4000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on advance filter.");
                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(2000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select city in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "City");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click arrow to move column.");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Select zipcode in avail columns.");
                corp_EmployeeHelper.SelectByText("AvailableCols", "Zipcode");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click arrow to move column");
                corp_EmployeeHelper.ClickElement("AddCols");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                corp_EmployeeHelper.ClickElement("AdvanceFilter");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter first name in user details.");
                corp_EmployeeHelper.TypeText("UserDetailsFN", "Sel");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter last name in user details.");
                corp_EmployeeHelper.TypeText("UserDetailsLN", "Enium");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter email in user details.");
                corp_EmployeeHelper.TypeText("UserDetailEmail", "*****@*****.**");

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter city name in user details.");
                corp_EmployeeHelper.TypeText("UserDetailsCity", "Chicago");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Enter zipcode in user details.");
                corp_EmployeeHelper.TypeText("UserDetailZipCode", "60601");
                //corp_EmployeeHelper.WaitForWorkAround(5000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Click on apply button.");
                corp_EmployeeHelper.ClickElement("Apply");
                corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify employee name on the page.");
                corp_EmployeeHelper.VerifyText("VerifyName", "Sel Enium");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Verify employee email on the page.");
                corp_EmployeeHelper.VerifyText("VerifyEmail2", "*****@*****.**");
                //corp_EmployeeHelper.WaitForWorkAround(3000);

                executionLog.Log("CorpEmployeeAdvanceFilter2", "Logout from the application.");
                VisitCorp("logout");
            }

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

                String counter     = executionLog.readLastLine("counter");
                String Description = executionLog.GetAllTextFile("CorpEmployeeAdvanceFilter2");
                String Error       = executionLog.GetAllTextFile("Error");
                Console.WriteLine(Error);
                if (counter == "")
                {
                    counter = "0";
                }
                bool result = loginHelper.CheckExstingIssue("Corp Employee Advance Filter2");
                if (!result)
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        loginHelper.CreateIssue("Corp Employee Advance Filter2", "Bug", "Medium", "Employee page", "QA", "Log in as: " + username1[0] + " / " + password1[0] + "\n\nSteps:\n" + Description + "\n\n\nError Description:\n" + Error);
                        string id = loginHelper.getIssueID("Corp Employee Advance Filter2");
                        TakeScreenshot("CorpEmployeeAdvanceFilter2");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CorpEmployeeAdvanceFilter2.png";
                        loginHelper.AddAttachment(location, id);
                    }
                }
                else
                {
                    if (Int16.Parse(counter) < 9)
                    {
                        executionLog.Count("counter", (Int16.Parse(counter) + 1).ToString());
                        TakeScreenshot("CorpEmployeeAdvanceFilter2");
                        string id            = loginHelper.getIssueID("Corp Employee Advance Filter2");
                        string directoryName = loginHelper.GetnewDirectoryName(GetPath());
                        var    location      = directoryName + "\\CorpEmployeeAdvanceFilter2.png";
                        loginHelper.AddAttachment(location, id);
                        loginHelper.AddComment(loginHelper.getIssueID("Corp Employee Advance Filter2"), "This issue is still occurring");
                    }
                }
                JIRA = loginHelper.getIssueID("Corp Employee Advance Filter2");
                //  executionLog.DeleteFile("Error");
                throw;
            }
            finally
            {
                executionLog.DeleteFile("CorpEmployeeAdvanceFilter2");
                executionLog.WriteInExcel("Corp Employee Advance Filter2", Status, JIRA, "Corp Emplaoyee");
            }
        }