Пример #1
0
        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);
        }
Пример #2
0
 public IWebElement GetInvisibleElement()
 {
     WebAvatar.SearchAll();
     return(WebElement);
 }