Beispiel #1
0
        public WebTree(RemoteWebDriver driver, IWebElement webElement, WebTreeOptions customOptions = null)
            : base(driver, webElement)
        {
            var options = customOptions ?? new WebTreeOptions();

            this.expanderLocator       = options.GetEffectiveExpanderLocator();
            this.collapserLocator      = options.GetEffectiveCollapseLocator();
            this.isSelfItemsContainer  = options.IsSelfItemsContainer;
            this.itemsContainerLocator = options.ItemsContainerLocator ?? By.TagName(webElement.TagName);;
        }
Beispiel #2
0
 public WebTree ToWebTree(WebTreeOptions options = null)
 {
     return(new WebTree(this.Driver, this.WebElement, options));
 }
Beispiel #3
0
 public WebTree GetTreeWithId(string id, WebTreeOptions options = null)
 {
     return(Driver.GetTreeWithId(id, options));
 }