示例#1
0
 public new IWebElement FindElementByXPath(string xpath)
 {
     return(WrapElementIfRemote_(webElement_.FindElementByXPath(xpath)));
 }
示例#2
0
 /// <summary>
 ///       Finds the first of elements that match the XPath supplied
 ///       </summary>
 /// <param name="xpath">xpath to the element</param>
 /// <returns>IWebElement object so that you can interact that object</returns>
 /// <example>
 ///   <code>
 ///       IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
 ///       IWebElement elem = driver.FindElementsByXPath("//table/tbody/tr/td/a");
 ///       </code>
 /// </example>
 public IWebElement FindElementByXPath(string xpath)
 {
     return(DecoratedWebElement.FindElementByXPath(xpath));
 }