public new ReadOnlyCollection <IWebElement> FindElementsByXPath(string xpath) { return(new ReadOnlyCollection <IWebElement>( WrapElements_(webElement_.FindElementsByXPath(xpath)))); }
/// <summary> /// Finds a list of elements that match the XPath supplied /// </summary> /// <param name="xpath">xpath to element on the page</param> /// <returns>ReadOnlyCollection of IWebElement objects so that you can interact that object</returns> /// <example> /// <code> /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox()); /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByXpath("//tr/td/a") /// </code> /// </example> public ReadOnlyCollection <IWebElement> FindElementsByXPath(string xpath) { return(DecoratedWebElement.FindElementsByXPath(xpath)); }