Esempio n. 1
0
        public void RemovePersonnel(string role)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Select the service
            //Libary.WaitForElementByID(browser, "assignedRoles", RunTimeVars.PAGELOADWAIT);
            //SelectElement select = new SelectElement(browser.FindElement(By.Id("assignedRoles"))); //Locating select list

            IWebElement assignedRoles = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "assignedRoles", RunTimeVars.REPEAT_TIMES);
            SelectElement select = new SelectElement(assignedRoles);
            select.SelectByText(role.Trim()); //Select item from list having option text as "Item1"

            //click the transfer button
            IWebElement element1 = browser.FindElement(By.Id("assignedRoles"));
            IWebElement remove = element1.FindElement(By.XPath("//input[@type='button' and @title='Remove role(s)']"));

            //Libary.HighLight(browser, remove);
            //remove.Click();

            //The button is tied to Javascript onclick event
            //use Javascript to click the button
            //<input type="button" title="Remove role(s)" onclick="associatePersonnelRoles(false);" value="<<">
            IJavaScriptExecutor jscript = (IJavaScriptExecutor)browser;
            jscript.ExecuteScript("arguments[0].click();", remove);

            this.AssertRemovePersonnel(role, RunTimeVars.REPEAT_TIMES);


        }
        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();
        }
Esempio n. 3
0
        public IWebElement CancelNewStudentAppButton()
        {
            IWebElement cancel = null;

            try
            {
                IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

                //id="dialog-NewStudent" = //html/body/div[13]
                IWebElement dialogNewStudent = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "dialog-NewStudent", RunTimeVars.REPEAT_TIMES);
                //Move up to (1)-parent dir
                IWebElement parent = dialogNewStudent.FindElement(By.XPath(".."));

                //this element is the same location as id="dialog-NewStudent"
                IWebElement element = browser.FindElement(By.XPath("//html/body/div[13]"));

                //<span class="ui-button-text">Cancel</span>
                //html/body/div[13]/div[11]/div/button[2]/span

                cancel = parent.FindElement(By.XPath("div[11]/div/button[2]/span"));
            }
            catch
            {
                //Do nothing, just catch the exception
            }

            return(cancel);
        }
Esempio n. 4
0
        public void AddService(string service)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Select the service
            IWebElement   availableSelected = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "availableSelected", RunTimeVars.REPEAT_TIMES);
            SelectElement select            = new SelectElement(availableSelected);

            select.SelectByText(service); //Select item from list having option text as "Item1"

            //Unless this wait time is added
            //a Run-time exception is displayed
            //Another control would receive the click event ???
            System.Threading.Thread.Sleep(1 * 1000);

            //Add the services
            IWebElement addServicesControl = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "addServiceButton", RunTimeVars.REPEAT_TIMES);
            IWebElement addServices        = addServicesControl.FindElement(By.XPath("//input[@type='button'][@name='addServiceButton']"));

            //IWebElement addServices = browser.FindElement(By.XPath("//*[@id='addServiceButton']"));

            //Libary.HighLight(browser, addServices);
            addServices.Click();

            //Run-time error displayed, Had to add action class
            //Actions action = new Actions(browser);
            //action.MoveToElement(addServices).Click().Build().Perform();
            //Libary.ClickElement(browser, addServices, true, RunTimeVars.REPEAT_TIMES);
        }
Esempio n. 5
0
        /// <summary>
        /// Before the status is Updated
        /// the status element is located in a //span not a //div
        /// </summary>
        /// <param name="status"></param>
        public void SetStatus(string status)
        {
            //Approve the staff list
            if (status.ToUpper().Equals("UNDER REVIEW"))
            {
                TestRunnerInterface.Map.providerSearchPage.StaffTab();
                TestRunnerInterface.Map.staffTab.StaffDataApproved();

                //Keep the previous status, we haven't updated it yet
                Libary.RefreshApplication(RunTimeVars.Refresh.PageRefresh);
            }


            //Switch to Status/Flags Tab
            TestRunnerInterface.Map.providerSearchPage.StatusFlagsTab();

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;
            //IWebElement submitted = browser.FindElement(By.XPath("//div[text()='Submitted']"));
            var query = "//span[text()='" + status + "']";
            //IWebElement submitted = browser.FindElement(By.XPath(query));
            IWebElement submitted = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.XPATH, query, RunTimeVars.REPEAT_TIMES);

            submitted.Click();


            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);
            Libary.RefreshApplication(RunTimeVars.Refresh.PageRefresh);
        }
Esempio n. 6
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 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 SetSSID(string ssid)
        {
            IWebDriver  browser = TestRunnerInterface.Map.safePage.browser;
            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "txtStdntSSID", RunTimeVars.REPEAT_TIMES);

            element.SendKeys(ssid);
        }
Esempio n. 9
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);
            }
        }
Esempio n. 10
0
        private void Save()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Find the parent table element
            //Then find child element element
            //Libary.WaitForElementByID(browser, "tblDocumentsOnFile", RunTimeVars.PAGELOADWAIT);
            //IWebElement element1 = browser.FindElement(By.Id("tblDocumentsOnFile"));

            IWebElement element1 = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "tblDocumentsOnFile", RunTimeVars.REPEAT_TIMES);
            IWebElement save     = element1.FindElement(By.XPath("//input[@type='submit' and @value='Save']"));

            Libary.HighLight(browser, save);

            //save.Click();

            // Move cursor to the Main Menu Element
            //Actions action = new Actions(browser);
            //action.MoveToElement(save).ClickAndHold().Build().Perform();

            //The button is tied to Javascript onclick event
            //use Javascript to click the button
            //<input type="submit" value="Save" onclick="OnSaveClick();">

            IJavaScriptExecutor jscript = (IJavaScriptExecutor)browser;

            jscript.ExecuteScript("arguments[0].click();", save);
        }
Esempio n. 11
0
        /// <summary>
        /// Determine if(Save and Refresh butttons are displayed)
        /// </summary>
        public void ClickSaveAndRefresh()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Find the parent table element
            //Then find all child elements relative to the parent table element
            //Find the parent table element
            //IWebElement element1 = browser.FindElement(By.Id("tblDocumentsOnFile"));

            IWebElement table = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "tblDocumentsOnFile", RunTimeVars.REPEAT_TIMES);
            //Then find all child elements relative to the parent table element
            //ReadOnlyCollection<IWebElement> childs = element1.FindElements(By.XPath(".//*"));

            //ReadOnlyCollection<IWebElement> buttons = table.FindElements(By.XPath("tbody/tr[4]/td/input"));
            ReadOnlyCollection <IWebElement> buttons = table.FindElements(By.XPath("//input[@type='submit']"));

            if (buttons.Count == 1)
            {
                //Only Refresh button displayed
                this.Refresh();
            }

            else
            {
                //Both Refresh and Save buttons displayed
                //10/1/15 - I had to split these 2-calls apart
                //when you click the refresh button, the web page
                //refreshes and the browser DOM loses reference
                //to the page element and displays the error
                //Message=stale element reference: element is not attached to the page document
                //
                this.Refresh();
                this.Save();
            }
        }
        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 ******************/
        }
Esempio n. 13
0
        public IWebElement StudentETR_RadioButton(bool state)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //<input type="radio" name="radioBtn" value="Yes">
            //*[@id="dialog-StudentApp"]/fieldset/table/tbody/tr/td[1]/table/tbody/tr[6]/td[2]/input[1]
            //
            //<input type="radio" name="radioBtn" value="No">
            //*[@id="dialog-StudentApp"]/fieldset/table/tbody/tr/td[1]/table/tbody/tr[6]/td[2]/input[2]

            //IWebElement dialog = browser.FindElement(By.Id("dialog-StudentApp"));
            IWebElement dialog = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "dialog-StudentApp", RunTimeVars.REPEAT_TIMES);
            IWebElement radioButton;

            if (state)
            {
                //radioButton = dialog.FindElement(By.XPath("//input[@type='radio' and @value='Yes']"));
                radioButton = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.XPATH, "//input[@type='radio' and @value='Yes']", RunTimeVars.REPEAT_TIMES);
            }
            else
            {
                //radioButton = dialog.FindElement(By.XPath("//input[@type='radio' and @value='No']"));
                radioButton = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.XPATH, "//input[@type='radio' and @value='No']", RunTimeVars.REPEAT_TIMES);
            }

            return(radioButton);
        }
        public IWebElement UpdateStudentButton()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Update Student button
            //<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
            //role="button" aria-disabled="false"><span class="ui-button-text">Update Student</span></button>

            //Xpath
            //html/body/div[10]/div[11]/div/button[1]

            //Cancel button
            //<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
            //role="button" aria-disabled="false"><span class="ui-button-text">Cancel</span></button>


            IWebElement updateStudent = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.XPATH, "//span[@class='ui-button-text'] [text()='Update Student']", RunTimeVars.REPEAT_TIMES);
            //Libary.HighLight(browser, updateStudent);

            IWebElement cancel = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.XPATH, "//span[@class='ui-button-text'] [text()='Cancel']", RunTimeVars.REPEAT_TIMES);

            //Libary.HighLight(browser, cancel);

            return(updateStudent);
        }
Esempio n. 15
0
        public IWebElement CancelButton()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement cancel = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "Cancel", RunTimeVars.REPEAT_TIMES);

            return(cancel);
        }
Esempio n. 16
0
        public IWebElement AddButton()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement add = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "AddIEP", RunTimeVars.REPEAT_TIMES);

            return(add);
        }
        public void SetLastName(string name)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "txtLastName", RunTimeVars.REPEAT_TIMES);

            element.SendKeys(name);
        }
        public void EditStudentInfomation()
        {
            //Edit Student Information
            IWebDriver  browser = TestRunnerInterface.Map.safePage.browser;
            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "updateStudentInformation", RunTimeVars.REPEAT_TIMES);

            element.Click();
        }
Esempio n. 19
0
        /// <summary>
        /// At the Guardian Review page
        /// Update and Assign A Guardian
        /// </summary>
        public void GuardianReview(string relationship)
        {
            //Slect First Name
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.LinkText, "Select", RunTimeVars.REPEAT_TIMES);

            element.Click();

            //Set Middle Name
            // if(Middle Name == blank)
            //Set Guardian does not have Middle Name = Checked
            element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "txtGuardianMiddleName", RunTimeVars.REPEAT_TIMES);
            var text = element.Text;

            if (string.IsNullOrEmpty(text))
            {
                element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "chbGuardianNoMiddleName", RunTimeVars.REPEAT_TIMES);
                if (!element.Selected)
                {
                    element.Click();
                }
            }

            //Set Last four digits of SSN#
            // if(Last four digits of SSN# == blank)
            //Set Never issued an SSN = Checked
            element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "txtGuardianLast4SSN", RunTimeVars.REPEAT_TIMES);
            text    = element.Text;
            if (string.IsNullOrEmpty(text))
            {
                element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "chbGuardianNoSsn", RunTimeVars.REPEAT_TIMES);
                if (!element.Selected)
                {
                    element.Click();
                }
            }

            //Set Relationship
            SelectElement select = new SelectElement(browser.FindElement(By.Id("ddlRelationship"))); //Locating select list

            select.SelectByText(relationship);

            //Locate the Assign Guardian button
            //<span class="ui-button-text">Assign Guardian</span>
            //html/body/div[14]/div[11]/div/button[1]/span
            //
            //Locate the dialog at //html/body/div[14]
            IWebElement dialog = browser.FindElement(By.Id("dialog-GuardianPreview"));

            //Locate the page element at //html/body/div[14]
            //this should be the same location as the IWebElement dialog
            IWebElement test = browser.FindElement(By.XPath("//html/body/div[14]"));

            IWebElement assignGuardian = dialog.FindElement(By.XPath("//span[text()='Assign Guardian']"));

            assignGuardian.Click();
        }
Esempio n. 20
0
        public void SetPrimaryDisabilityCondition(string condition)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement   primaryDisabilityCondition = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "ddlDisabilityCategory", RunTimeVars.REPEAT_TIMES);
            SelectElement select = new SelectElement(primaryDisabilityCondition);

            select.SelectByText(condition); //Select item from list having option text as "Item1"
        }
Esempio n. 21
0
        public IWebElement ServiceFinalized()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement divTable = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "viewIepDiv", RunTimeVars.REPEAT_TIMES);
            IWebElement element  = divTable.FindElement(By.XPath("//span[contains(text(), 'Service Finalized')]"));

            return(element);
        }
Esempio n. 22
0
        public void SetApplicationPeroid(string peroid)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement   appPeroid = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "ddlRptPer", RunTimeVars.REPEAT_TIMES);
            SelectElement element   = new SelectElement(appPeroid);

            element.SelectByText(peroid);
        }
        public void ProfessionalConductIssue()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //browser.FindElement(By.Id("chkApprove")).Click();
            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "chkApprove", RunTimeVars.REPEAT_TIMES);

            element.Click();
        }
Esempio n. 24
0
        public void BackToSearchResults(string link)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.LinkText, "Back to Basic Search results", RunTimeVars.REPEAT_TIMES);
            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.LinkText, link, RunTimeVars.REPEAT_TIMES);

            element.Click();
        }
Esempio n. 25
0
        public void SetDateofLastEvalation(string date)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "txtiepLastEvalDate", RunTimeVars.REPEAT_TIMES);

            element.Clear();
            element.SendKeys(date + Keys.Enter);
        }
        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 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 AddStaff(string firstName
                             , string lastName
                             , string DOB)
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //click the Add Staff button
            //browser.FindElement(By.Id("addNewStaffDialog")).Click();
            IWebElement staffButton = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "addNewStaffDialog", RunTimeVars.REPEAT_TIMES);

            staffButton.Click();

            //1-Search Results
            //Name: Susan Cosmo
            //Date Of Birth: 09/30/1965

            //6-Search Results
            //Name: Lynn Cosmo
            //Date Of Birth: 01/01/2001

            //Libary.WaitForElementByID(browser, "searchStaffFName", RunTimeVars.PAGELOADWAIT);

            //First Name
            //IWebElement element = browser.FindElement(By.Id("searchStaffFName"));
            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "searchStaffFName", RunTimeVars.REPEAT_TIMES);

            //element.SendKeys("Susan");
            //element.SendKeys("Lynn");
            element.SendKeys(firstName);

            //Last Name
            element = browser.FindElement(By.Id("searchStaffLName"));
            //element.SendKeys("Cosmo");
            //element.SendKeys("Cosmo");
            element.SendKeys(lastName);

            //DOB
            element = browser.FindElement(By.Id("searchStaffDob"));
            //element.SendKeys("09/30/1965" + Keys.Enter);
            //element.SendKeys("01/01/2001" + Keys.Enter);
            element.SendKeys(DOB + Keys.Enter);

            //Click Search Button
            //Orginal deep nested Parnet-Child trees
            //IWebElement search = browser.FindElement(By.XPath("/html/body/div[56]/div[11]/div/button[1]/span"));
            IWebElement search = this.AddStaffSearch();
            IWebElement cancel = this.AddStaffCancel();

            search.Click();

            //Select Search Results
            this.SelectSearchResults(1);
        }
        public void StaffDataApproved()
        {
            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //browser.FindElement(By.Id("odeapproved")).Click();

            IWebElement element = Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "odeapproved", RunTimeVars.REPEAT_TIMES);

            if (!element.Selected)
            {
                element.Click();
            }
        }
        public void IncomeVerificationTab()
        {
            this.ClickLink("INCOME VERIFICATION");
            Libary.WaitForPageLoad(RunTimeVars.REPEAT_TIMES);

            IWebDriver browser = TestRunnerInterface.Map.safePage.browser;

            //Wait for Fiscal Year Listbox
            Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "ddlFyHshd", RunTimeVars.REPEAT_TIMES);


            //Wait for Add Household button
            //Libary.GetPageElement(browser, RunTimeVars.ELEMENTSEARCH.ID, "btnAddHshdForFy", RunTimeVars.REPEAT_TIMES);
        }