Example #1
0
        private BrowserPageObject GetBrowserPageObject(PageObjectBase pageObject)
        {
            if (pageObject == null)
            {
                return(null);
            }

            var browserPageObject = pageObject as BrowserPageObject;

            if (browserPageObject != null)
            {
                return(browserPageObject);
            }
            else
            {
                return(GetBrowserPageObject(pageObject.Parent));
            }
        }
Example #2
0
 protected PageObjectBase(PageObjectBase parent, ISearchContext searchContext)
 {
     this.Parent        = parent;
     this.SearchContext = searchContext;
 }