MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / xpath

Method xpath

java/src/org/openqa/selenium/By.java:89–91  ·  view source on GitHub ↗

@param xpathExpression The XPath to use. @return A By which locates elements via XPath.

(String xpathExpression)

Source from the content-addressed store, hash-verified

87 * @return A By which locates elements via XPath.
88 */
89 public static By xpath(String xpathExpression) {
90 return new ByXPath(xpathExpression);
91 }
92
93 /**
94 * Find elements based on the value of the "class" attribute. Only one class name should be used.

Calls

no outgoing calls