예제 #1
0
        public void integrationCodeAPICancel()
        {
            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 pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnIntegrationTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/api_codes");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //cLICK ON pdf
            pDFTemplateAdminHelper.ClickElement("ClickCanelApi");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //Verify API Keys
            pDFTemplateAdminHelper.VerifyPageText("API Keys");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);
        }
예제 #2
0
        public void allUserPageInCorp()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

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

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

            //Initializing the objects
            var loginHelper            = new LoginHelper(GetWebDriver());
            var clientHelper           = new ClientsHelper(GetWebDriver());
            var pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //Redirect To
            pDFTemplateAdminHelper.ClickElement("ClickOnOffice");

            //
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/allusers");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            //Select User Type
            pDFTemplateAdminHelper.Select("SelectUserTypeCorp", "Employee");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Select User Type
            pDFTemplateAdminHelper.Select("SelectUserTypeCorp", "1099 Sales Agent");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Select User Type
            pDFTemplateAdminHelper.Select("SelectUserTypeCorp", "Client");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Select User Type
            pDFTemplateAdminHelper.Select("SelectUserTypeCorp", "Partner");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
        }
예제 #3
0
        public void deletePDFTemplate()
        {
            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 pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");


            //Redirect To Import
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates/import");

            //ChooseModule
            pDFTemplateAdminHelper.Select("ChooseModule", "20");

            //var path = @"D:\NEWPEG\TestAutomationProject\PegasusTests\Files\2.pdf";
            var path = GetPathToFile() + "2.pdf";

            //bROWSER
            pDFTemplateAdminHelper.UploadFile("//*[@id='PdfTemplatePdfFile']", path);


            //Click import
            pDFTemplateAdminHelper.ClickElement("ClickOnImport");
            pDFTemplateAdminHelper.WaitForWorkAround(10000);

            //ClickOnNext
            pDFTemplateAdminHelper.ClickElement("ClickOnNext");

            //Select Category
            pDFTemplateAdminHelper.Select("SelectCategory", "339");

            //ClickOnSave
            pDFTemplateAdminHelper.ClickElement("ClickOnSave");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
            //Verify
            pDFTemplateAdminHelper.VerifyPageText("PDF Template options saved successfully.");

            //Redirect To
            //   GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //Enter PDF TO sEARCH
            pDFTemplateAdminHelper.TypeText("EnterPDFToSearch", "2.pdf");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            //SelectModuleToSearch
            pDFTemplateAdminHelper.Select("SelectModuleToSearch", "clients");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            //cLICK ON pdf
            pDFTemplateAdminHelper.ClickElement("ClickOnPdf");

            //cLICK On Delete
            pDFTemplateAdminHelper.ClickElement("ClickOnDelete");
            pDFTemplateAdminHelper.AcceptAlert();
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
            pDFTemplateAdminHelper.VerifyPageText("PDF Template Moved to Recycle Bin.");
        }
예제 #4
0
        public void practicalPDFProblem()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

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

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

            //Initializing the objects
            var loginHelper            = new LoginHelper(GetWebDriver());
            var clientHelper           = new ClientsHelper(GetWebDriver());
            var pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());

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

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

            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //Redirect To Import
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/pdf_templates/import");

            //ChooseModule
            pDFTemplateAdminHelper.Select("ChooseModule", "20");

            var path = GetPathToFile() + "Test_Final.pdf";

            //bROWSER
            pDFTemplateAdminHelper.UploadFile("//*[@id='PdfTemplatePdfFile']", path);


            //Click import
            pDFTemplateAdminHelper.ClickElement("ClickOnImport");
            pDFTemplateAdminHelper.WaitForWorkAround(10000);

            //Select tab
            pDFTemplateAdminHelper.SelectByText("Tab", "Business Details");
            pDFTemplateAdminHelper.WaitForWorkAround(5000);

            //Verify fields availble under section
            pDFTemplateAdminHelper.SelectByText("Section", "Merchant Account Data");
            pDFTemplateAdminHelper.WaitForWorkAround(5000);

            //Verify fields under fields
            pDFTemplateAdminHelper.SelectByText("Fields", "Merchant Type");

            //Click on Next button
            pDFTemplateAdminHelper.ClickElement("ClickOnNext");

            //Verify mapped successfully
            pDFTemplateAdminHelper.WaitForText("PDF fields mapped successfully.", 30);
        }
예제 #5
0
        public void pDFPackageWithRule()
        {
            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 pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //cLICK ON pdf
            pDFTemplateAdminHelper.ClickElement("ClickCreatePackage");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //Enter pakage name
            pDFTemplateAdminHelper.TypeText("PackageName", "Test Pakage");

            //Select Module
            pDFTemplateAdminHelper.Select("SelectModule", "20");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Click SelectPDFTempwithRule
            pDFTemplateAdminHelper.ClickElement("SelectPDFTempwithRule");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            //Template Rule Name
            pDFTemplateAdminHelper.TypeText("TemplateRuleName", "Test Rule");

            //SelectRuleType
            pDFTemplateAdminHelper.Select("SelectRuleType", "if");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //SelectStatus
            //  pDFTemplateAdminHelper.Select("SelectStatus", "clients.client_type");
            pDFTemplateAdminHelper.SelectDropDownByText("//*[@id='if_field_left_0']", "Client Type");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //SelectStatus
            pDFTemplateAdminHelper.Select("SelectOperatorType", "li");

            //SelectStatus
            //   pDFTemplateAdminHelper.Select("StatusNew", "New");

            //SelectStatus
            pDFTemplateAdminHelper.SelectDropDownByText("//*[@id='ImportIndexPopIfFieldValue']", "Clone of FNPAdd Lo Form 2");

            //Click Add Pdf
            pDFTemplateAdminHelper.ClickElement("ADDPDF");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //SelectCategoryPackage
            pDFTemplateAdminHelper.Select("SelectCategoryPackage", "336");

            //Save PDF Package
            pDFTemplateAdminHelper.ClickElement("SavePDFPakage");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Verify
            pDFTemplateAdminHelper.VerifyPageText("PDF Package Template Created Successfully");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
        }
예제 #6
0
        public void createPDFPackage()
        {
            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 pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //cLICK ON pdf
            pDFTemplateAdminHelper.ClickElement("ClickCreatePackage");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //Enter pakage name
            pDFTemplateAdminHelper.TypeText("PackageName", "Test Pakage");

            //Select Module
            pDFTemplateAdminHelper.Select("SelectModule", "20");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Select
            pDFTemplateAdminHelper.Select("SelectPDFTemplate", "8760");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //SelectCategoryPackage
            pDFTemplateAdminHelper.Select("SelectCategoryPackage", "336");

            //Save PDF Package
            pDFTemplateAdminHelper.ClickElement("SavePDFPakage");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
        }
예제 #7
0
        public void makeStatusActivePDFTemplateCorp()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

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

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

            //Initializing the objects
            var loginHelper            = new LoginHelper(GetWebDriver());
            var clientHelper           = new ClientsHelper(GetWebDriver());
            var pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //Enter PDF TO sEARCH
            pDFTemplateAdminHelper.TypeText("EnterPDFToSearch", "2.pdf");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            //SelectModuleToSearch
            pDFTemplateAdminHelper.Select("SelectModuleToSearch", "clients");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            var loc = "//table[@id='list1']/tbody/tr[2]";

            if (pDFTemplateAdminHelper.IsElementPresent(loc))
            {
                //cLICK ON pdf
                pDFTemplateAdminHelper.ClickElement("ClickEdit");

                //cLICK On Delete
                pDFTemplateAdminHelper.Select("SelectStatusCorp", "1");

                //Click Save Edit
                pDFTemplateAdminHelper.ClickElement("ClickSaveEdit");

                //Verify
                pDFTemplateAdminHelper.WaitForText("PDF Template Updated Successfully.", 40);
            }
            else
            {
                //ClickOnPdfTab
                pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

                //Redirect To Import
                GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/pdf_templates/import");

                //ChooseModule
                pDFTemplateAdminHelper.Select("ChooseModule", "20");

                var path = GetPathToFile() + "2.pdf";
                //bROWSER
                pDFTemplateAdminHelper.UploadFile("//*[@id='PdfTemplatePdfFile']", path);


                //Click import
                pDFTemplateAdminHelper.ClickElement("ClickOnImport");
                pDFTemplateAdminHelper.WaitForWorkAround(5000);

                //ClickOnNext
                pDFTemplateAdminHelper.ClickElement("ClickOnNext");

                //Select Category
                pDFTemplateAdminHelper.Select("SelectCategory", "49");

                //ClickOnSave
                pDFTemplateAdminHelper.ClickElement("ClickOnSave");
                pDFTemplateAdminHelper.WaitForWorkAround(3000);
                //Verify
                pDFTemplateAdminHelper.VerifyPageText("PDF Template options saved successfully.");

                //Redirect To
                //   GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates");
                pDFTemplateAdminHelper.WaitForWorkAround(2000);

                //Enter PDF TO sEARCH
                pDFTemplateAdminHelper.TypeText("EnterPDFToSearch", "2.pdf");
                pDFTemplateAdminHelper.WaitForWorkAround(4000);

                //SelectModuleToSearch
                pDFTemplateAdminHelper.Select("SelectModuleToSearch", "clients");
                pDFTemplateAdminHelper.WaitForWorkAround(4000);

                //cLICK ON pdf
                pDFTemplateAdminHelper.ClickElement("ClickEdit");

                //cLICK On Delete
                pDFTemplateAdminHelper.Select("SelectStatusCorp", "1");

                //Click Save Edit
                pDFTemplateAdminHelper.ClickElement("ClickSaveEdit");

                //Verify
                pDFTemplateAdminHelper.VerifyPageText("PDF Template Updated Successfully.");
            }
        }
예제 #8
0
        public void editPDFTemplateNewSkin()
        {
            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 pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "TESTCLIENT" + RandomNumber(1, 999);


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

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

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates/import");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //ChooseModule
            pDFTemplateAdminHelper.Select("ChooseModule", "20");

            var path = GetPathToFile() + "2.pdf";

            //bROWSER
            pDFTemplateAdminHelper.UploadFile("//*[@id='PdfTemplatePdfFile']", path);


            //Click import
            pDFTemplateAdminHelper.ClickElement("ClickOnImport");
            pDFTemplateAdminHelper.WaitForWorkAround(10000);

            //ClickOnNext
            pDFTemplateAdminHelper.ClickElement("ClickOnNext");

            //Select Category
            pDFTemplateAdminHelper.SelectDropDownByText("//*[@id='PdfTemplatePdfCategoryId']", "Card Service Agreements");

            //ClickOnSave
            pDFTemplateAdminHelper.ClickElement("ClickOnSave");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
            //Verify
            pDFTemplateAdminHelper.VerifyPageText("PDF Template options saved successfully.");

            //Enter Pdf To Search
            pDFTemplateAdminHelper.TypeText("EnterPDFToSearch", "2.pdf");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //Click on Edit
            pDFTemplateAdminHelper.ClickElement("ClickOnEdit");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);


            //Enter Template Name
            pDFTemplateAdminHelper.TypeText("EnterTemplateName", "Replace Name");

            //Click On Save
            pDFTemplateAdminHelper.ClickElement("SavebuttonEDit");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);
        }
        public void createPDFPackagePushToOffice()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();

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

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

            //Initializing the objects
            var loginHelper            = new LoginHelper(GetWebDriver());
            var clientHelper           = new ClientsHelper(GetWebDriver());
            var pDFTemplateAdminHelper = new PDFTemplateAdminHelper(GetWebDriver());


            //Variable random
            var name = "Push To Office" + RandomNumber(1, 999);


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

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


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //cLICK ON pdf
            pDFTemplateAdminHelper.ClickElement("ClickCreatePackage");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);

            //Enter pakage name
            pDFTemplateAdminHelper.TypeText("PackageName", name);

            //Select Module
            pDFTemplateAdminHelper.Select("SelectModule", "20");
            pDFTemplateAdminHelper.WaitForWorkAround(6000);

            //Select
            pDFTemplateAdminHelper.SelectDropDownByText("//*[@id='PdfTemplatePdfTemplateId']", "Clone of FNPMPA");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //SelectCategoryPackage
            pDFTemplateAdminHelper.SelectDropDownByText("//*[@id='PdfTemplatePdfCategoryId']", "Card Service Agreements");

            //PDFAccessedByAllOffice
            pDFTemplateAdminHelper.ClickElement("PDFAccessedByAllOffice");

            //Check Display in Tab
            pDFTemplateAdminHelper.ClickElement("CheckDisplayInTab");

            //Check Can Share
            pDFTemplateAdminHelper.ClickElement("CheckCanShare");

            //CanEmailPDF
            pDFTemplateAdminHelper.ClickElement("CanEmailPDF");

            //Save PDF Package
            pDFTemplateAdminHelper.ClickElement("SavePDFPakage");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);


            //ClickOnWelcomeToLogout
            pDFTemplateAdminHelper.ClickElement("ClickOnWelcomeToLogout");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //LogoutFromCorp
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/logout");
            pDFTemplateAdminHelper.WaitForWorkAround(3000);

            //EnterUserName
            pDFTemplateAdminHelper.TypeText("EnterUserName", "AslamKhan");

            //EnterPassword
            pDFTemplateAdminHelper.TypeText("EnterPassword", "1qaz!QAZ");

            //LoginButton
            pDFTemplateAdminHelper.ClickElement("LoginButton");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

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

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/admin");
            pDFTemplateAdminHelper.WaitForWorkAround(4000);


            //ClickOnPdfTab
            pDFTemplateAdminHelper.ClickElement("ClickOnPdfTab");

            //Redirect To
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/pdf_templates");
            pDFTemplateAdminHelper.WaitForWorkAround(2000);


            //EnterPDFToSerch
            pDFTemplateAdminHelper.TypeText("EnterPDFToSerch", name);
            pDFTemplateAdminHelper.WaitForWorkAround(4000);

            //verify text
            pDFTemplateAdminHelper.VerifyText("TextToVerify", name);
            pDFTemplateAdminHelper.WaitForWorkAround(2000);
        }