public ReadOnlyCollection <IWebElement> FindElementsByName(string name) { try { return(new ReadOnlyCollection <IWebElement>(syncWebElement.FindElementsByName(name).Select(v => (IWebElement) new WebElementAdapter(v, driver)).ToList())); } catch (Zu.WebBrowser.BasicTypes.WebBrowserException webDriverException) { throw WebDriverConverters.ToSeleniumException(webDriverException); } catch { throw; } }
public ReadOnlyCollection <IWebElement> FindElementsByName(string name) { return(new ReadOnlyCollection <IWebElement>(syncWebElement.FindElementsByName(name).Select(v => (IWebElement) new WebElementAdapter(v)).ToList())); }