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));
            }
        }
示例#2
0
 protected PageObjectBase(PageObjectBase parent, ISearchContext searchContext)
 {
     this.Parent        = parent;
     this.SearchContext = searchContext;
 }
 public AppiumXamarinPageObjectBase(PageObjectBase parent, ISearchContext searchContext) : base(parent, searchContext)
 {
 }
 public AppiumXamarinPageObjectBase(PageObjectBase parent) : base(parent)
 {
 }
 protected AppiumWpfPageObjectBase(PageObjectBase parent, ISearchContext searchContext) : base(parent, searchContext)
 {
 }
 protected AppiumWpfPageObjectBase(PageObjectBase parent) : base(parent)
 {
 }
 protected WebPageObjectBase(PageObjectBase parent, ISearchContext searchContext) : base(parent, searchContext)
 {
 }
 protected WebPageObjectBase(PageObjectBase parent) : base(parent)
 {
 }
示例#9
0
 protected AndroidPageObjectBase(PageObjectBase parent) : base(parent)
 {
 }