public void pDFTemplatesPerminsions()
        {
            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 loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            // Variable
            var name = "Test" + RandomNumber(1,99);

            //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.");

            //#######################  MOVE HOVER TO THE WELCOME
            //Click on Move over
              //  clientBugsHelper.ClickElement("MouserHoverWelcome");

            //Click On  Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/admin");

            //################################# PDF TEMPLATE TAB #############################################

            //Click on Terminal And Equipment Tab
            clientBugsHelper.ClickElement("ClickOnPDFTab");

            //Redirect
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/pdf_templates");

            //Click on PDF
            clientBugsHelper.ClickElement("ClickPDF");

            //Click On Permisions
            clientBugsHelper.ClickElement("ClickOnPermisions");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On None Of These
            clientBugsHelper.ClickElement("ClickOnNoneOfThese");

            //Click on Updtae
            clientBugsHelper.ClickElement("ClickOnUpdate");
            clientBugsHelper.WaitForWorkAround(2000);

            //Verify Text
            clientBugsHelper.VerifyPageText("Pdf Permissions Updated Successfully.");
        }
        public void importClientsFromCSV()
        {
            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 clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable

            var FirstName = "Test" + RandomNumber(1, 99);
            var LastName = "Tester" + RandomNumber(1, 99);
            var Number = "12345678" + RandomNumber(10, 99);

            //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.");

            //Click on Clients in Topmenu
            clientBugsHelper.ClickElement("ClientTab");
            clientBugsHelper.WaitForElementPresent("ClickOnImport", 20);

            //Click On Import
            clientBugsHelper.ClickElement("ClickOnImport");
            clientBugsHelper.WaitForWorkAround(2000);

            //Upload
            var Path = GetPathToFile() + "clientsamples(2).csv";
            clientBugsHelper.uploadCSVClient("SelectFile", Path);
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Import
            clientBugsHelper.ClickElement("ClickOnImportClint");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Client Import
            //  clientBugsHelper.Select("SelectClientImport","47");
            clientBugsHelper.WaitForWorkAround(3000);

            //Residual Import Sel
            //clientBugsHelper.Select("ResidualImportSel", "");

            //ClickImprtProcess
            clientBugsHelper.ClickElement("ClickImprtProcess");
            clientBugsHelper.WaitForWorkAround(10000);
        }
        public void editPickListStatuses()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

               //Redirect To URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/admin");

            //Click on System Tab
            clientBugsHelper.ClickElement("ClickOnSystemTab");

            //Redirect To PickList
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/pick-lists");

            //Enter Name To Seacrch
            clientBugsHelper.TypeText("EnterNamePicklist", "Statuses");

            //Enter Name To Seacrch
            clientBugsHelper.TypeText("EnterModule", "Clients");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Statuses
            clientBugsHelper.ClickElement("ClickOnStatuses");

            //Clcik on Add button
            clientBugsHelper.ClickElement("ClickOnAddBtn");

            //Enter PickList Value
            clientBugsHelper.TypeText("EnterPickListValue", "TestStatues");

            //Click PickList Save Button
            clientBugsHelper.ClickElement("PickListSaveBtn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Verify The picklist value is added successfully
            clientBugsHelper.VerifyPageText("The picklist value is added successfully");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void bulkUpdateSalesManagerForClient()
        {
            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 clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable

            var FirstName = "Test" + RandomNumber(1, 99);
            var LastName = "Tester" + RandomNumber(1, 99);
            var Number = "12345678" + RandomNumber(10, 99);

            //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.");

            //Click on Clients in Topmenu
            clientBugsHelper.ClickElement("ClientTab");
            clientBugsHelper.WaitForElementVisible("ClickOnOppChjkBox",30);

            //Click On Opp Check Box
            clientBugsHelper.ClickElement("ClickOnOppChjkBox");

            //Click On Bulk Update
            clientBugsHelper.ClickElement("ClickOnBulkUpdate");

            //Change Sale Manager
            clientBugsHelper.ClickElement("ChangeSaleManager");

            //Select Sales MANAGER
            clientBugsHelper.SelectDropDownByText("//*[@id='ClientSalesManagerUpdateSalesManagerId']", "Aslam Khan");

            //Click on Update button
            clientBugsHelper.ClickDisplayed("//button[text()='Update']");
            clientBugsHelper.AcceptAlert();
            clientBugsHelper.WaitForWorkAround(2000);
            clientBugsHelper.VerifyPageText("records updated successfully");
        }
Example #5
0
        public void clientAddresses()
        {
            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
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(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.");
            clientBugsHelper.WaitForWorkAround(4000);

             //Redirect
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

            //ClickOnClientContactTab
            clientBugsHelper.ClickElement("ClickOnClientContactTab");

            clientBugsHelper.TypeText("AddressLine1NW", "F/C=89");

            //EnterZipCodeClnt
            clientBugsHelper.TypeText("EnterZipCodeClnt","60601");
            clientBugsHelper.WaitForWorkAround(4000);

            //MailClintAddNS
            clientBugsHelper.TypeText("MailClintAddNS","Test");

            //MailingZipCode
            clientBugsHelper.TypeText("MailingZipCodeNS", "60601");
            clientBugsHelper.WaitForWorkAround(4000);

            //Enetr Client First Name
            clientBugsHelper.TypeText("FirstNameContactClintNS","My Client");

            //EnterZipCodeClintNWcNT
            clientBugsHelper.TypeText("EnterZipCodeClintNWcNT","60601");
            clientBugsHelper.WaitForWorkAround(4000);
        }
        public void ticketSettingAdmin()
        {
            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
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable
            var TicketName = "Test" + RandomNumber(9, 999);
            var NewName = "TestNew Ticket" + RandomNumber(1,99);

            //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.");
            clientBugsHelper.WaitForWorkAround(4000);

            //Redirect To Admin
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/admin");
            clientBugsHelper.WaitForWorkAround(4000);

            //Ticket Tab
            clientBugsHelper.ClickElement("TicketTab1");
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/tickets/settings");

            //Select Ticket Created Status
            clientBugsHelper.Select("SelectTicketCreatedStatus","New");

            //Select Ticket Created Status
            clientBugsHelper.Select("ResolvedTicketStatus", "Resolved Status");

            //Select Ticket Created Status
            clientBugsHelper.Select("ClosedTicketStatus", "Closed");

            //Click Save
            clientBugsHelper.ClickElement("ClickOnAddBtn");
            clientBugsHelper.WaitForWorkAround(3000);
        }
Example #7
0
        public void filterForAgent()
        {
            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
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(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.");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Agent Tab
              //  clientBugsHelper.ClickElement("ClickOnAgentTab");
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/agents");
            clientBugsHelper.WaitForWorkAround(4000);

            //Select Agent Type
            clientBugsHelper.Select("SelectAgentType", "");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Agent Type
            clientBugsHelper.Select("SelectStatus", "Active");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Agent Type
            clientBugsHelper.Select("SelectRole", "");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Agent Type
            clientBugsHelper.Select("SelectDepartment", "");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Agent Type
            clientBugsHelper.Select("SelectTeam", "");
            clientBugsHelper.WaitForWorkAround(3000);
        }
Example #8
0
        public void editOmahaPDFCorp()
        {
            string[] username = null;
            string[] password = null;

            XMLParse 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 loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var createPDFCategoriesHelper = new CreatePDFCategoriesHelper(GetWebDriver());
             var clientBugsHelper = new ClientBugsHelper(GetWebDriver());
            //Variable random

            String  name = "Test" + RandomNumber(1, 99);

            //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.");

            //Click on Click On Partner Agent
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/pdf_templates");
            clientBugsHelper.WaitForWorkAround(4000);

            //Enter Name
            clientBugsHelper.TypeText("OmahaFirst", "First Data - Omaha");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click on Omaha
            clientBugsHelper.ClickElement("ClickOnEdit");
            clientBugsHelper.WaitForElementPresent("EnterName",30);

            // Enter Name
            clientBugsHelper.TypeText("EnterName", "First Data - Omaha");

            //Click On Save
            clientBugsHelper.ClickElement("ClickOnSaveBtnPDFTemp");
            clientBugsHelper.WaitForWorkAround(4000);
        }
        public void sendEmailFromActivity()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

            //Click On Activity Tab\
            clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Redirect to URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/mails/compose");

            //Enter To Filed
            clientBugsHelper.TypeText("EnterToFiled", "*****@*****.**");

            //Enter CC
            clientBugsHelper.TypeText("EnterCCMuliple", "[email protected],[email protected],[email protected]");

            //Enter Subject
            clientBugsHelper.TypeText("EmailName","This is Subject");

            //Click send Button
            clientBugsHelper.ClickElement("ClickSendBtn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Verify Email sent successfully
            clientBugsHelper.VerifyPageText("E-Mail Sent Successfully.");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void residualIncomePayoutSummaryOfficeViewReports()
        {
            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 residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver());
               var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable
               String AdjName = "Rule Test" + RandomNumber(1,99);

               //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.");

             //Click on Residual Income tab
               residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome");

            //Goto Adjustment rule
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary");
               clientBugsHelper.WaitForWorkAround(4000);

            //File Format
               clientBugsHelper.Select("FileFormat", "First Data North");
               clientBugsHelper.WaitForWorkAround(3000);

               //Select Status
              // clientBugsHelper.Select("SelectStatusRIReport", "Published");
              // clientBugsHelper.WaitForWorkAround(3000);

            //Click On RI Date
               clientBugsHelper.ClickElement("ClickOnRIDate");
               clientBugsHelper.WaitForWorkAround(3000);
        }
        public void sentEmailVerifyResidualIncomeReports()
        {
            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 residualIncmeOfficeHelper = new ResidualIncmeOfficeHelper(GetWebDriver());
               var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable
            var  email = "Testing" + RandomNumber(1,999) + "@yopmail.com";
            var  subject = "This is Testing Subject" + 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.");

             //Click on Residual Income tab
               residualIncmeOfficeHelper.ClickElement("ClickOnResidualIncome");

            //Goto Adjustment rule
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary");
               clientBugsHelper.WaitForWorkAround(4000);

            //Select Status
               clientBugsHelper.Select("SelectStatusRIReport", "Published");
               clientBugsHelper.WaitForWorkAround(3000);

            //Click on View Report
               clientBugsHelper.ClickElement("ViewReports");
               clientBugsHelper.WaitForWorkAround(4000);

            //Verify Text Selenium Corp Residual Reports
               clientBugsHelper.VerifyPageText("Selenium Corp Residual Reports");

               //Click On Email Icon
               clientBugsHelper.ClickElement("ClickOnEmailIcon");

            //Enter To Email
               clientBugsHelper.TypeText("EnterToEmailRI", email);

            //Enter Subject
               clientBugsHelper.TypeText("EnterSubjectAttRI", subject);

            //Click on Send button
               clientBugsHelper.ClickElement("EmailSendButtonRI");
               clientBugsHelper.WaitForWorkAround(4000);

               //Verify Report Mail is Sent Successfully.
               clientBugsHelper.VerifyPageText("Report Mail is Sent Successfully.");

            //Click On Activity Tab
               clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Redirect To Page
               GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/mails/sent");
               clientBugsHelper.WaitForWorkAround(4000);

            //Enter To Search RI
               clientBugsHelper.TypeText("EnterToSearchRI",email);

            //Enter Subject
               clientBugsHelper.TypeText("EnterSubjectRI", subject);
               clientBugsHelper.WaitForWorkAround(4000);

            //Click on Email
               clientBugsHelper.ClickElement("ClickPDF");
               clientBugsHelper.WaitForWorkAround(3000);
               clientBugsHelper.VerifyPageText(email);
               clientBugsHelper.VerifyPageText(subject);
               clientBugsHelper.WaitForWorkAround(3000);
        }
        public void residualIncomePublishPayoutFromOffice()
        {
            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 loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

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

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

            //Click On Login Button
            loginAsCorpHelper.ClickElement("ClickOnLoginButton");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016");

            //File Date
            clientBugsHelper.ClickElement("ClickOnFileDate");

            //Click on Date
            clientBugsHelper.ClickElement("SelectDate");

            var FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported");

            //#############   CALCULATION WIZARD

            //Click On Calculation wizard
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSkipRecal1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            // Publish Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Logout
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

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

            //Click on Residual Income Tab
            clientBugsHelper.ClickElement("ClickOnPDFTemplates");
            clientBugsHelper.WaitForWorkAround(3000);

            //Redirect To URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/rir/payout_summary");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            //            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status New
            clientBugsHelper.Select("SelectStatusRIReport", "New");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Calculation Wizard
            clientBugsHelper.ClickElement("ClickOnCalculationWizard");

            //Agent LookUp
            clientBugsHelper.ClickElement("AgentLookUp");
            clientBugsHelper.WaitForWorkAround(3000);

            //Calculate Adjustment
            clientBugsHelper.ClickElement("CalculateAdjustment");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Adjustments calculation successfully completed");

            //AgentPayout Calculation
            clientBugsHelper.ClickElement("AgentPayoutCalculation");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click Publish
            clientBugsHelper.ClickElement("ClickPublish");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Payouts Published.");

            //View Published PayoutRI
            clientBugsHelper.ClickElement("ViewPublishedPayoutRI");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void verifyCreateTicketInAllTickets()
        {
            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 loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable
            var TicketName = "Test" + RandomNumber(1, 99);
            string Loc = "//a[text()="+"[']"+TicketName+"[']"+"]";

            //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.");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Client Tab
            clientBugsHelper.ClickElement("ClientTab");
            clientBugsHelper.WaitForWorkAround(4000);

            //Clcik on Clinet
            clientBugsHelper.ClickElement("ClickOnClient");

            //Create Ticket Btn
            clientBugsHelper.ClickElement("CreateTicketBtn");

            //Enter Ticket Name
            clientBugsHelper.TypeText("EnterTicketName", TicketName);

            //Enter Description
            clientBugsHelper.TypeText("TicketDescription","Testing Ticket Description");

            //Clcik Save ticket button
            clientBugsHelper.ClickElement("SaveBtnTicket");
            clientBugsHelper.WaitForWorkAround(2000);

            //Click on Loc
            clientBugsHelper.VerifyPageText("1 Ticket(s) created");

            clientBugsHelper.VerifyPageText(TicketName);
            clientBugsHelper.WaitForWorkAround(2000);

            //Click on Ticket Tab
            clientBugsHelper.ClickElement("TicketTab");
            clientBugsHelper.WaitForWorkAround(3000);

            //Search Created Ticket
            clientBugsHelper.TypeText("TaskSearch", TicketName);
            clientBugsHelper.WaitForWorkAround(4000);
            clientBugsHelper.VerifyPageText(TicketName);
            clientBugsHelper.WaitForWorkAround(2000);
        }
Example #14
0
        public void meetingForLead()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

            //Click on Activity Tab
             //        clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Redirect to Meeting
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/meetings/create");

            //EnterMeetingName
            clientBugsHelper.TypeText("EnterMeetingName","Test Meeting");

            //MeetingStart
            clientBugsHelper.ClickElement("MeetingStart");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickDate18
            clientBugsHelper.ClickElement("ClickDate18");
            clientBugsHelper.WaitForWorkAround(3000);

            //EndDATE
            clientBugsHelper.ClickElement("EndDATE");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickDate28
            clientBugsHelper.ClickElement("ClickDate28");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickOnSaveButn
            clientBugsHelper.ClickElement("ClickOnSaveButn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Related
            clientBugsHelper.SelectDropDownByText("//*[@id='MeetingParentType']", "Lead");

            //ClickOnAssignedToMeeting
            clientBugsHelper.ClickElement("ClickOnAssignedToMeeting");

            //SelectLedForMeeting
            clientBugsHelper.ClickElement("SelectLedForMeeting");
            clientBugsHelper.WaitForWorkAround(3000);

            //ClickOnSaveButn
            clientBugsHelper.ClickElement("ClickOnSaveButn");
            clientBugsHelper.WaitForWorkAround(3000);

            //verify page text
            clientHelper.VerifyPageText("Meeting saved successfully.");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void editTicketForClient()
        {
            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
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable
            var TicketName = "Test" + RandomNumber(9, 999);
            var NewName = "TestNew Ticket" + RandomNumber(1,99);

            //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.");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Client Tab
            clientBugsHelper.ClickElement("ClientTab");
            clientBugsHelper.WaitForWorkAround(4000);

            //Clcik on Clinet
            clientBugsHelper.ClickElement("ClickOnClient");
            clientBugsHelper.WaitForElementPresent("CreateTicketBtn", 40);

            //scroll to element
            clientBugsHelper.scrollToElement("CreateTicketBtn");
            //Create Ticket Btn
            clientBugsHelper.ClickElement("CreateTicketBtn");
            clientBugsHelper.WaitForElementPresent("EnterTicketName",40);

            //Enter Ticket Name
            clientBugsHelper.TypeText("EnterTicketName", TicketName);

            //Enter Description
            clientBugsHelper.TypeText("TicketDescription","Testing Ticket Description");

            //Click on Select
            clientBugsHelper.Select("SelectStatustICKET", "Open");

            //Click on Select
            clientBugsHelper.SelectDropDownByText("//*[@id='TicketAssignedUserId']", "Aslam Khan");

            //Click on Select
            clientBugsHelper.SelectDropDownByText("//*[@id='TicketAssignedManagerId']", "Aslam Khan");

            //Clcik Save ticket button
            clientBugsHelper.ClickDisplayed("//input[@value='Save']");
            clientBugsHelper.WaitForWorkAround(2000);

            //Click on Loc
            clientBugsHelper.VerifyPageText("1 Ticket(s) created");

            clientBugsHelper.VerifyPageText(TicketName);
            clientBugsHelper.WaitForWorkAround(2000);

            //Click on Ticket Tab
             //   clientBugsHelper.ClickElement("TicketTab");
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/ticket-search/open");

            //Search Ticket
            clientBugsHelper.TypeText("TaskSearch", TicketName);
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Ticket
            clientBugsHelper.ClickElement("ClickOnEditTicket");
            clientBugsHelper.WaitForWorkAround(3000);

            //Enter Ticket Name
            clientBugsHelper.TypeText("EnterTicketName", TicketName);

            //Click on Save
            clientBugsHelper.ClickElement("ClickOnSaveButn");
            clientBugsHelper.VerifyPageText("Ticket Edited Successfully");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void inactivePickListStatuses()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

               //Redirect To URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/admin");

            //Click on System Tab
             //       clientBugsHelper.ClickElement("ClickOnSystemTab");

            //Redirect To PickList
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/pick-lists");

            //Enter Name To Seacrch
            clientBugsHelper.TypeText("EnterNamePicklist", "Statuses");

            //Enter Name To Seacrch
            clientBugsHelper.TypeText("EnterModule", "Clients");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Statuses
            clientBugsHelper.ClickElement("ClickOnStatuses");
            clientBugsHelper.WaitForElementPresent("ClickOnAddBtn",20);

            //Clcik on Add button
            clientBugsHelper.ClickElement("ClickOnAddBtn");

            //Enter PickList Value
            var name = "Test" + RandomNumber(99, 99000);
            clientBugsHelper.TypeText("EnterPickListValue", name);

            //Click PickList Save Button
            clientBugsHelper.ClickElement("PickListSaveBtn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Refresh
            GetWebDriver().Navigate().Refresh();
            clientBugsHelper.WaitForWorkAround(3000);

            //Click on Inactive button
            clientBugsHelper.PicInactive(name);
            clientBugsHelper.WaitForWorkAround(3000);

            //Replace Picklist
            clientBugsHelper.SelectDropDownByText("//*[@id='PickListValueReplaceItem']", "Declined");
            clientBugsHelper.WaitForWorkAround(3000);

            //PicklistSaveBtnReplace
            clientBugsHelper.ClickElement("PicklistSaveBtnReplace");

            //ACcep Alert
            clientBugsHelper.AcceptAlert();
            clientBugsHelper.WaitForWorkAround(3000);

            //Ver
            //    clientBugsHelper.VerifyStatusInactve(name);
            //    clientBugsHelper.WaitForWorkAround(3000);

            //Verify The picklist value is added successfully
            //clientBugsHelper.VerifyPageText("The picklist value is added successfully");
            clientBugsHelper.WaitForWorkAround(3000);
        }
Example #17
0
        public void editTask()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

            //Redirect To Url
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/tasks/create");
            clientBugsHelper.WaitForWorkAround(4000);

            //Enter Subject
            clientBugsHelper.TypeText("Subject", "This is Task");

            //Task Start Date
            clientBugsHelper.TypeText("TaskStartDate", "2015-07-02");

            //Task End Date
            clientBugsHelper.TypeText("TaskDueDate", "2015-09-08");

            //Click on Save
            clientBugsHelper.ClickElement("ClickSaveBtn");
            clientBugsHelper.WaitForWorkAround(5000);

            //Redirect To Url
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/tasks");
            clientBugsHelper.WaitForWorkAround(4000);

            //Search Task
            clientBugsHelper.TypeText("TaskSearch", "This is Task");
            Thread.Sleep(3000);

            //Click on Task To Edit
            clientBugsHelper.ClickElement("ClickOnTaskEdit");

            //Click on Edit Buttomn
            clientBugsHelper.ClickElement("ClickEditBtn");

            //Enter Subject
            clientBugsHelper.TypeText("Subject", "Edit Task");

            //Task Start Date
               //         clientBugsHelper.TypeText("TaskStartDate", "2015-08-02");

            //Task End Date
            //            clientBugsHelper.TypeText("TaskDueDate", "2015-11-08");

            //Click On Save
            clientBugsHelper.Click("//button[@title='Save']");
            clientBugsHelper.WaitForWorkAround(4000);
            clientBugsHelper.VerifyPageText("Task Updated Success.");
        }
        public void opportunitiesZipCode()
        {
            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 clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable

            var FirstName = "Test" + RandomNumber(1, 99);
            var LastName = "Tester" + RandomNumber(1, 99);
            var Number = "12345678" + RandomNumber(10, 99);

            //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 URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/opportunities/create");
            clientBugsHelper.WaitForElementPresent("AddressLine1Opp",20);

            //Enter Address Line1
            clientBugsHelper.TypeText("AddressLine1Opp", "TEST ADDRESS LINE 1");

            //Enter City
            clientBugsHelper.TypeText("ZipCodeOpp", "60601");
            clientBugsHelper.WaitForWorkAround(5000);

            //Verify text
              //  clientBugsHelper.VerifyText("AddressCountryDdwn", "United States");

            //Verify
            //    clientBugsHelper.VerifyText("StateOpp", "IL");
            clientBugsHelper.WaitForWorkAround(2000);

            //############################# MAILING  ADDRESS   ##################################3

              //Select MailingAddressLine1
            clientBugsHelper.TypeText("MailingAddLine1opp", "test");

            //Enter Mailing Zip Code
            clientBugsHelper.TypeText("MailingZipCodeOpp", "30033");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select County
            //        clientBugsHelper.VerifyText("CountryDrpDwnMailing", "United States");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Mailing State
              //      clientBugsHelper.VerifyText("StateMailing", "GA");
        }
        public void createTicketAndDeleteTicketFromAgnet()
        {
            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
            LoginHelper loginHelper = new LoginHelper(GetWebDriver());
            ClientsHelper clientHelper = new ClientsHelper(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable
            var TicketName = "Test" + RandomNumber(1, 99);

            //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.");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Client Tab
            clientBugsHelper.ClickElement("ClientTab");
            clientBugsHelper.WaitForWorkAround(4000);

            //Clcik on Clinet
            clientBugsHelper.ClickElement("ClickOnClient");

            //Create Ticket Btn
            clientBugsHelper.ClickElement("CreateTicketBtn");

            //Enter Ticket Name
            clientBugsHelper.TypeText("EnterTicketName", TicketName);

            //Enter Description
            clientBugsHelper.TypeText("TicketDescription","Testing Ticket Description");

            //Click on Select
            clientBugsHelper.Select("SelectStatustICKET", "Open");

            //Click on Select
            clientBugsHelper.SelectDropDownByText("//*[@id='TicketAssignedUserId']", "Aslam Khan");

            //Click on Select
            clientBugsHelper.Select("//*[@id='TicketAssignedManagerId']", "Aslam Khan");

            //Clcik Save ticket button
            clientBugsHelper.ClickDisplayed("//input[@value='Save']");
            clientBugsHelper.WaitForWorkAround(2000);

            //Click on Loc
            clientBugsHelper.VerifyPageText("1 Ticket(s) created");

            clientBugsHelper.VerifyPageText(TicketName);
            clientBugsHelper.WaitForWorkAround(2000);

            //Redirect To Logout Page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/logout");

            //###############   LOGIN AS MY EMPLOYEE AGENT

            //Enter User name
            clientBugsHelper.TypeText("EnterUsername", "MyEmpAgent");

            //Enter Password
            clientBugsHelper.TypeText("EnterPassword", "1qaz!QAZ");

            //Click login button
            clientBugsHelper.ClickElement("LoginBtn");

            //Click on Ticket tab
            clientBugsHelper.ClickElement("TicketTab");
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/tickets");
            clientBugsHelper.WaitForWorkAround(3000);

            //Enter Ticket Subject
            clientBugsHelper.TypeText("TaskSearch", TicketName);
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Check box
            clientBugsHelper.ClickElement("ClickOnOppChjkBox");

            //Click on Delete
            clientBugsHelper.ClickElement("ClickDeleteIcon");
            clientBugsHelper.AcceptAlert();
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("Records deleted successfully");
            clientBugsHelper.WaitForWorkAround(2000);
        }
        public void showMeetingOnCalender()
        {
            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 bulkUpdateOffice = new BulkUpdateOffice(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable

            var FirstName = "Test" + RandomNumber(1, 99);
            var LastName = "Tester" + RandomNumber(1, 99);
            var Number = "12345678" + RandomNumber(10, 99);

            //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.");

            /*            //Click on Clients in Topmenu
            clientBugsHelper.ClickElement("ClickleadTab");

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

            //Enter First Name
            bulkUpdateOffice.TypeText("LeadFirstName", "Lead");

            //Enter Last Name
            bulkUpdateOffice.TypeText("LastName", "Meeting");

            //Enter Lead Company
            bulkUpdateOffice.TypeText("LeadCompanyNmae", "Lead Meeting");

            //LeadPhnNumber
            bulkUpdateOffice.TypeText("LeadPhnNumber", "6757656756");

            //LeadEmail
            bulkUpdateOffice.TypeText("LeadEmail", "*****@*****.**");

            //Click on ClickOnDublicate
            bulkUpdateOffice.ClickOnDublicate();
            bulkUpdateOffice.WaitForWorkAround(3000);            */

            //Click on Clients in Topmenu
            clientBugsHelper.ClickElement("ClickleadTab");
            bulkUpdateOffice.WaitForWorkAround(3000);

            //SrchLeadCompany
            bulkUpdateOffice.TypeText("SrchLeadCompany", "Lead Meeting");

            //Serch Email Leda
            bulkUpdateOffice.TypeText("SrchEmail", "*****@*****.**");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Opp Check Box
            bulkUpdateOffice.ClickElement("ClickOnLead");

            //Click on Email
            bulkUpdateOffice.ClickElement("ClickOnAddMeeting");

            //Enter Document Name
            bulkUpdateOffice.TypeText("EnterSubjectMeeting", "Test Meeting");

            //Click On Start Date
            bulkUpdateOffice.ClickElement("ClickOnStartDate");

            //Click On Start Date
            bulkUpdateOffice.ClickElement("SelectDate");

            //Click On Start Date
               //     bulkUpdateOffice.ClickElement("ClickOnEndDate");
            bulkUpdateOffice.WaitForWorkAround(2000);

            //Click On Start Date
              //      bulkUpdateOffice.ClickElement("SeletEndDate");

            //Enter Document Description
            bulkUpdateOffice.frame("Description");

            //Swtich Top Default
            GetWebDriver().SwitchTo().DefaultContent();

            //Upload file
            bulkUpdateOffice.UploadFile("//*[@id='DocumentFile']", "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\1.pdf");
            bulkUpdateOffice.WaitForWorkAround(3000);

            //Click on Send Email button
            bulkUpdateOffice.ClickElement("ClickOnSaveMeeting");
            bulkUpdateOffice.WaitForWorkAround(3000);
            bulkUpdateOffice.VerifyPageText("Meeting saved successfully.");
            bulkUpdateOffice.WaitForWorkAround(3000);

            //Click on Calender meeting
            bulkUpdateOffice.ClickElement("ClickOnCalender");
            bulkUpdateOffice.WaitForWorkAround(3000);
            bulkUpdateOffice.VerifyPageText("Related To");
            bulkUpdateOffice.VerifyPageText("Description");
            bulkUpdateOffice.WaitForWorkAround(2000);
        }
        public void forwardSentEmailNote()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

            //Click On Activity Tab\
            clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Redirect to URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/notes/create");
            clientBugsHelper.WaitForElementPresent("EnterSubNote",30);

            //Enter Subject
            clientBugsHelper.TypeText("EnterSubNote", "Email This Note");

            //Click on Save
            clientBugsHelper.ClickElement("ClickSaveBtn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Verify tEXT
            clientBugsHelper.VerifyPageText("Note saved successfully.");

            //Search Note
            clientBugsHelper.TypeText("TaskSearch", "Email This Note");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click on Note
            clientBugsHelper.ClickElement("ClickOnNote");

            //Click On Email This NOte
            clientBugsHelper.ClickElement("ClickOnEmail");
            clientBugsHelper.WaitForWorkAround(3000);

            //Enter To Filed
            clientBugsHelper.TypeText("EnterToFiled", "*****@*****.**");

            //Click send Button
            clientBugsHelper.ClickElement("ClickSendBtn");
            clientBugsHelper.WaitForWorkAround(3000);

            //Verify Email sent successfully
            clientBugsHelper.VerifyPageText("E-Mail Sent Successfully.");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Activity Tab\
            //        clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Redirect
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/mails");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click On Sent To Forward
            clientBugsHelper.ClickElement("ClickOnSentToForward");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click on Email To Forward
            clientBugsHelper.ClickElement("ClickOnEmailToFORAWRD");
            clientBugsHelper.WaitForWorkAround(3000);

            //Click on Forwar
            clientBugsHelper.ClickElement("ClickOnForward");
            clientBugsHelper.WaitForElementPresent("EnterToEmailRI", 30);

            //Enter Email To Search
            clientBugsHelper.TypeText("EnterToEmailRI", "*****@*****.**");

            //Enter SubjectRI
            //clientBugsHelper.TypeText("EnterSubjectRI", "This is Subject");

            //Click on Send Button
            clientBugsHelper.ClickElement("ClickSendBtn");
            clientBugsHelper.WaitForWorkAround(3000);
            clientBugsHelper.VerifyPageText("E-Mail Sent Successfully.");
            clientBugsHelper.WaitForWorkAround(2000);
        }
        public void residualIncomeViewReportsCorp()
        {
            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 loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var loginAsCorpHelper = new LoginAsCorpHelper(GetWebDriver());
            var resdiualIncmeSkipHelper = new ResdiualIncmeSkipHelper(GetWebDriver());
            var resdiualIncmeFstDataNrthHelperRevnueShareSet = new ResdiualIncmeFstDataNrthHelperRevnueShareSet(GetWebDriver());
            var clientBugsHelper = new ClientBugsHelper(GetWebDriver());

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

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

            //Click On Login Button
            loginAsCorpHelper.ClickElement("ClickOnLoginButton");

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

             //Click on Residual Income tab
             resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickResidualIncomeTab");

            //Click to Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.redirectToPage();

            //Click On Import New button
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportNew");

            //Processor
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ProcessorType", "First Data North");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(3000);

            //Reporting Period
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("ReportingPeriod", "11");

            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectYr", "2016");

            //File Date
            clientBugsHelper.ClickElement("ClickOnFileDate");

            //Click on Date
            clientBugsHelper.ClickElement("SelectDate");

            var FileName = "D:\\pegqa\\TestAutomationProject\\PegasusTests\\Files\\FirstDataNorth_ResidualSamples - Small.csv";
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Upload("SelectBrowseCSVFile", FileName);
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Import
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnImportBtn");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(5000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Imported");

            //#############   CALCULATION WIZARD

            //Click On Calculation wizard
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnCalculation");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click On Step1
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickOnSkipRecal1");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            //Click on skip step 2
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("ClickSkipStp2Recal");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(6000);

            // Publish Payout
            resdiualIncmeFstDataNrthHelperRevnueShareSet.ClickElement("PublishPayout");
            //     resdiualIncmeFstDataNrthHelper.elementpre();
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(8000);

            //##################################  SET FILTER  ##################################

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectFiletReportingPeriod", "November 2016");

            // Select Processor Filer
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectProcessorFiler", "First Data North");

            //Select Filter FileFormat
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("FilterFileFormat", "First Data North");

            //Select Filter ReportingPeriod
            resdiualIncmeFstDataNrthHelperRevnueShareSet.TypeText("FileName", "FirstDataNorth_ResidualSamples - Small");

            //Select Status
            resdiualIncmeFstDataNrthHelperRevnueShareSet.Select("SelectStatus", "Published");
            resdiualIncmeFstDataNrthHelperRevnueShareSet.WaitForWorkAround(4000);

            //Click on Report View
            clientBugsHelper.ClickElement("CorpViewReports");
            clientBugsHelper.WaitForWorkAround(4000);

            //Verify text Selenium Corp Residual Reports
            clientBugsHelper.VerifyPageText("Selenium Corp Residual Reports");
            clientBugsHelper.WaitForWorkAround(4000);
        }
        public void createMeetingActivities()
        {
            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 clientBugsHelper = new ClientBugsHelper(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.");

            //Click on Clients in Topmenu
            clientBugsHelper.ClickElement("ClickOnActivityTab");

            //Click to open client info
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/meetings/create");
            clientHelper.WaitForWorkAround(3000);

            //Enter Subject for the task
            clientHelper.TypeText("MeetingSubject", "TESTING MEETING SUBJECT");

            //Enter Subject for the task
            clientHelper.TypeText("MeetingLocation", "TESTING MEETING LOCATION");

            //Enter date in the date field
            clientHelper.TypeText("StartDateMeting", "2015-03-25");

            //Enter Date in the End Date  field
            clientHelper.TypeText("EndMeetingDate", "2015-03-26");

            //Select Related To
            clientBugsHelper.Select("SelectRelatedTo", "20");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Assigned To
            clientBugsHelper.ClickElement("ClickOnAssignedToMeeting");
            clientBugsHelper.WaitForWorkAround(4000);

            //Clcik on Client You Want To Invite
            clientBugsHelper.ClickElement("ClickOnClientMeeting");
            clientBugsHelper.WaitForWorkAround(4000);

            //Click On Save button
            clientBugsHelper.ClickElement("SaveActivity");
            clientBugsHelper.WaitForWorkAround(3000);

            //verify page text
            clientBugsHelper.VerifyPageText("Meeting saved successfully.");
            clientBugsHelper.WaitForWorkAround(3000);
        }
        public void statusFilterForEmployeeAgent()
        {
            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 clientBugsHelper = new ClientBugsHelper(GetWebDriver());

            //Variable

            var FirstName = "Test" + RandomNumber(1, 99);
            var LastName = "Tester" + RandomNumber(1, 99);
            var Number = "12345678" + RandomNumber(10, 99);

            //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.");

            //Click on Clients in Topmenu
            //            clientBugsHelper.ClickElement("ClickOnAgentTab");

            //Redirect To URL
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selenium_corp/selenium_office/employees");

            //Select Status
            clientBugsHelper.Select("SelectStatus", "Active");
            clientBugsHelper.WaitForElementPresent("VerifyStatus",20);

            //Verify page text
            clientBugsHelper.VerifyText("VerifyStatus", "Active");
            clientBugsHelper.WaitForWorkAround(3000);

            //Select Status
            clientBugsHelper.Select("SelectStatus", "Disabled");
               //     clientBugsHelper.WaitForElementPresent("VerifyStatus", 20);

            //Verify page text
            //    clientBugsHelper.VerifyText("VerifyStatus", "Inactive");

            //Select Status
            clientBugsHelper.Select("SelectStatus", "");
            clientBugsHelper.WaitForWorkAround(3000);

            //Verify page text
            clientBugsHelper.VerifyPageText("Active");
            clientBugsHelper.WaitForWorkAround(3000);

            //Verify Page Text
              //  clientBugsHelper.VerifyPageText("Inactive");
              //  clientBugsHelper.WaitForWorkAround(3000);
        }