Exemplo n.º 1
0
 public new ReadOnlyCollection <IWebElement> FindElementsByXPath(string xpath)
 {
     return(new ReadOnlyCollection <IWebElement>(
                WrapElements_(webElement_.FindElementsByXPath(xpath))));
 }
Exemplo n.º 2
0
 /// <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));
 }