/// <summary>
        /// Clicks the user-specified element and then waits for a window to close or open, or a page to load,
        /// depending on the element that was clicked
        /// </summary>
        /// <param name="buttonOrLinkElem">The button element</param>
        public dynamic ClickAndWait(IWebElement buttonOrLinkElem)
        {
            // Error handler to make sure that the button that the tester passed in the parameter is actually on the page
            if (Browser.Exists(Bys.EducationPage.JointProviderPortalLnk))
            {
                if (buttonOrLinkElem.GetAttribute("href") == JointProviderPortalLnk.GetAttribute("href"))
                {
                    buttonOrLinkElem.Click();
                    CurriculumPage CP = new CurriculumPage(Browser);
                    CP.WaitForInitialize();
                    return(CP);
                }
            }

            else
            {
                throw new Exception("No button or link was found with your passed parameter");
            }

            return(null);
        }
Beispiel #2
0
 private async void EditCurriculum()
 {
     var page = new CurriculumPage(Context as CurriculumItem);
     await page.ShowAsync(Navigation);
 }