public void StudentProgramTransfer()
        {
            this.ClickMenuIJavaScript("Student", "Student Program Transfer");
            //this.ClickMenuActions("Student", "Student Program Transfert");

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
        public void InvoiceSearch()
        {
            this.ClickMenuIJavaScript("Payment", "Invoice Search");
            //this.ClickMenuActions("Payment", "Invoice Search");

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
        public void StudentAssessmentPreIDExport()
        {
            this.ClickMenuIJavaScript("Student", "Assessment Pre-ID Export");
            //this.ClickMenuActions("Student", "Assessment Pre-ID Export");

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
        public void ParticipatingBuildingsTab()
        {
            this.ClickLink("PARTICIPATING BUILDINGS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);


            //Verify the #cols displayed
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Determine Table #Col Width max #Cols
            //IWebElement table = browser.FindElement(By.Id("myTable"));
            IWebElement table = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "myTable", RunTimeVars.REPEAT_TIMES);
            ReadOnlyCollection <IWebElement> tableRows    = table.FindElements(By.TagName("tr"));
            ReadOnlyCollection <IWebElement> tableColumns = table.FindElements(By.TagName("th"));

            //Get Table #records
            var rowCount = tableRows.Count;
            var colCount = tableColumns.Count;

            //Check Table #Columns
            if (colCount != 7)
            {
                throw new Exception("The table #Columns Expected = 7 " +
                                    "The Actual table #Columns = " + colCount);
            }
        }
        public void StudentSSIDVerification()
        {
            this.ClickMenuIJavaScript("Student", "Student SSID verification");
            //this.ClickMenuActions("Student", "Student SSID verification");

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
        public void TuitionTab()
        {
            this.ClickLink("TUITION");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Verify School Year Start Date Textbox
            IWebElement schoolStartDate = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "SchoolYearStartDate", RunTimeVars.REPEAT_TIMES);

            //Verify School Year End Date Textbox
            IWebElement schoolEndDate = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "SchoolYearEndDate", RunTimeVars.REPEAT_TIMES);


            /********** comment out ******************
            *  //Note:
            *  //Save and Cancel buttons are only displayed for Admin Roles
            *
            *
            *  //Verify the Save button
            *  IWebDriver browser = TestRunnerInterface.Map.safePage.browser;
            *
            *  IWebElement form = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "tuition-form", RunTimeVars.REPEAT_TIMES);
            *  IWebElement save = form.FindElement(By.XPath("//input[@type='submit' and @value='Save']"));
            *  Libary.HighLight(browser, save);
            *
            *  //Verify the Cancel button
            *  IWebElement cancel = form.FindElement(By.XPath("//input[@type='button' and @value='Cancel']"));
            *  Libary.HighLight(browser, cancel);
            *
            ********** comment out ******************/
        }
        public void ApplicationQuestionsTab()
        {
            this.ClickLink("APPLICATION");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Verfiy Question 1 displayed
            //This page uses an IFrame, need to switch to the page IFrame
            //to access any page controls
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Find and switch to the iframe tag
            //IWebElement iframe = browser.FindElement(By.TagName("iFrame"));
            IWebElement iframe = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.TagName, "iFrame", RunTimeVars.REPEAT_TIMES);

            browser.SwitchTo().Frame(iframe);

            //Switch to 1st iframe
            //browser.SwitchTo().Frame(0);

            //Switch to 2nd iframe
            //browser.SwitchTo().Frame(1);


            Libary.WaitForPageText(browser, "Question 1", RunTimeVars.REPEAT_TIMES);

            //switch back to orginal window
            browser.SwitchTo().DefaultContent();
        }
示例#8
0
        public void AccountSummaryTab()
        {
            this.ClickLink("ACCOUNT SUMMARY");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Verify the #cols displayed
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "Account Information", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "Provider Name", RunTimeVars.REPEAT_TIMES);

            //Determine Table #Col Width max #Cols
            //IWebElement table = browser.FindElement(By.Id("tblAccInfo"));
            IWebElement table = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "tblAccInfo", RunTimeVars.REPEAT_TIMES);
            ReadOnlyCollection <IWebElement> tableRows    = table.FindElements(By.TagName("tr"));
            ReadOnlyCollection <IWebElement> tableColumns = table.FindElements(By.TagName("th"));

            //Get Table #records
            var rowCount = tableRows.Count;
            var colCount = tableColumns.Count;

            //Check Table #Columns
            //The Total #columns = the sum of both tables
            //Account Information table #columns = 7
            //Provider Name table #columns = 6
            //The sum of both tables = 6+7 = 13

            var colTotal = 6 + 7;

            if (colCount != colTotal)
            {
                throw new Exception("The table #Columns Expected = " + colTotal +
                                    "The Actual table #Columns = " + colCount);
            }
        }
        public void TestPageFactoryModel()
        {
            //To test browers using Page Objects need to do the following
            //Create an instance of the browser (Chrome, Firefox, Edge, IE)
            //Call the the method public GooglePageObjectModel(IWebDriver driver) to initialize the [FindsBy] annotation to work.
            //Call the method public void SearchText(string text) with text to search

            //*****************************************************************
            //The loginPage Page Object uses the app.config file
            // Update app.config to set which browser to use (Chrome,Firefox,Edge,IE)
            //
            //Create an instance of the browser (Chrome, Firefox, Edge, IE)
            TestRunnerInterface.Map.loginPage.LaunchBrowser("https://www.google.com/");

            //initialize the [FindsBy] annotation to work.
            IWebDriver browser = TestRunnerInterface.Map.loginPage.browser;

            TestRunnerInterface.Map.pageFactoryModel.InitPageObject(browser);


            //text to search
            TestRunnerInterface.Map.pageFactoryModel.SearchText("Books");

            //wait for page to load
            Libary.WaitForPageLoad(30);

            browser.Close();
        }
示例#10
0
        public void ProgressReportTab()
        {
            this.ClickLink("PROGRESS REPORT");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Verify the #cols displayed
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Determine Table #Col Width max #Cols
            //IWebElement table = browser.FindElement(By.Id("tblProgressReports"));
            IWebElement table = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "tblProgressReports", RunTimeVars.REPEAT_TIMES);
            ReadOnlyCollection <IWebElement> tableRows    = table.FindElements(By.TagName("tr"));
            ReadOnlyCollection <IWebElement> tableColumns = table.FindElements(By.TagName("th"));

            //Get Table #records
            var rowCount = tableRows.Count;
            var colCount = tableColumns.Count;

            //Check Table #Columns
            if (colCount != 6)
            {
                throw new Exception("The table #Columns Expected = 6 " +
                                    "The Actual table #Columns = " + colCount);
            }
        }
        public void RefundPayment()
        {
            this.ClickMenuIJavaScript("Payment", "Refund Payment");
            //this.ClickMenuActions("Payment", "Refund Payment");

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
        //**************************************
        // Menu Parent = User Manuals and Forms
        //**************************************
        public void UserManualsAndForms()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            browser.FindElement(By.LinkText("User Manuals and Forms")).Click();

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
示例#13
0
        public void Search()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            browser.FindElement(By.Id("Search")).Click();

            Libary.WaitForPageLoad(RunTimeVars.PAGELOADWAIT);
        }
        public void CreditHoursTab()
        {
            this.ClickLink("CREDIT HOURS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Wait for Credit Hours Table to be displayed
            TestRunnerInterface.Map.creditHoursTab.WaitForCreditHoursTable(RunTimeVars.REPEAT_TIMES);
        }
        public void IEPTab()
        {
            this.ClickLink("IEP");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "CURRENT IEP STATUS", RunTimeVars.REPEAT_TIMES);
        }
        public void StudentSuccessPlanTab()
        {
            this.ClickLink("STUDENT SUCCESS PLAN");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "CURRENT STATUS", RunTimeVars.REPEAT_TIMES);
        }
        public void AddinDeductScheduleTab()
        {
            this.ClickLink("ADDIN/DEDUCT SCHEDULE");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "ODEBufferSpace", RunTimeVars.REPEAT_TIMES);
        }
        public void BasicSearchTab()
        {
            this.ClickLink("BASIC SEARCH");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "PROVIDER NAME", RunTimeVars.REPEAT_TIMES);
        }
        public void ParentSearchTab()
        {
            this.ClickLink("PARENT SEARCH");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "APPLICATION ID", RunTimeVars.REPEAT_TIMES);
        }
        public void GraduationRequirementsTab()
        {
            this.ClickLink("GRADUATION REQUIREMENTS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "CURRENT STATUS", RunTimeVars.REPEAT_TIMES);
        }
        public void FundingCategorySetupTab()
        {
            this.ClickLink("FUNDING CATEGORY SETUP");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "Funding Categories", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "Mappings", RunTimeVars.REPEAT_TIMES);
        }
        public void ApplicationTab()
        {
            this.ClickLink("APPLICATION");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "Legal District of Residency", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "List of Providers", RunTimeVars.REPEAT_TIMES);
        }
        public void ParentGuardianTab()
        {
            this.ClickLink("PARENT / GUARDIAN");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Wait for Add New Primary Guardian button
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "addNewGuardian", RunTimeVars.REPEAT_TIMES);
        }
        public void StatusFlagsTab()
        {
            this.ClickLink("STATUS / FLAGS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Wait for Page Information
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "CURRENT APPLICATION STATUS", RunTimeVars.REPEAT_TIMES);
        }
        public void DocsTab()
        {
            this.ClickLink("DOCS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Wait for Docs Information
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "DOCUMENTS ON FILE", RunTimeVars.REPEAT_TIMES);
        }
示例#26
0
        public void FinanceCommentsTab()
        {
            this.ClickLink("FINANCE COMMENTS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Verify the #cols displayed
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "Comments Summary", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "Comments", RunTimeVars.REPEAT_TIMES);
        }
        public void StudentTab()
        {
            this.ClickLink("STUDENT");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Wait for Student Information
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "Student Information ", RunTimeVars.REPEAT_TIMES);
            //Libary.WaitForPageText(browser, "Student Home Mailing Address", RunTimeVars.REPEAT_TIMES);
        }
示例#28
0
        public void FinanceDocsTab()
        {
            this.ClickLink("FINANCE DOCS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            //Verify the #cols displayed
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "DOCUMENTS", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "DOCUMENTS ON FILE", RunTimeVars.REPEAT_TIMES);
        }
        public void ProgramManagementTab()
        {
            this.ClickLink("PROGRAM MANAGEMENT");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "Program Information", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "Fund Sources", RunTimeVars.REPEAT_TIMES);
            Libary.WaitForPageText(browser, "Notification Information", RunTimeVars.REPEAT_TIMES);
        }
        public void StatusFlagsTab()
        {
            this.ClickLink("STATUS / FLAGS");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);
            //TestRunnerInterface.Map.statusFlags.AssertStatusFlagsTabDisplay(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            Libary.WaitForPageText(browser, "CURRENT APPLICATION STATUS", RunTimeVars.REPEAT_TIMES);

            this.TabLoadWait();
        }