public IList <IWebElement> GetElementsFromTag() { IList <IWebElement> elements; try { elements = WebAvatar.SearchAll().WebElements; } catch { return(new List <IWebElement>()); } if (elements.Count == 1) { switch (elements[0].TagName) { case "select": return(Selector.Options); case "ul": return(elements[0].FindElements(By.TagName("li"))); } } return(elements); }
public IWebElement GetInvisibleElement() { WebAvatar.SearchAll(); return(WebElement); }