示例#1
0
 public ReadOnlyCollection <IWebElement> FindElementsByTagName(string tagName)
 {
     try
     {
         return(new ReadOnlyCollection <IWebElement>(syncWebElement.FindElementsByTagName(tagName).Select(v => (IWebElement) new WebElementAdapter(v, driver)).ToList()));
     }
     catch (Zu.WebBrowser.BasicTypes.WebBrowserException webDriverException)
     {
         throw WebDriverConverters.ToSeleniumException(webDriverException);
     }
     catch { throw; }
 }
 public ReadOnlyCollection <IWebElement> FindElementsByTagName(string tagName)
 {
     return(new ReadOnlyCollection <IWebElement>(syncWebElement.FindElementsByTagName(tagName).Select(v => (IWebElement) new WebElementAdapter(v)).ToList()));
 }