MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ByXPath

Method ByXPath

java/src/org/openqa/selenium/By.java:284–291  ·  view source on GitHub ↗
(String xpathExpression)

Source from the content-addressed store, hash-verified

282 private final String xpathExpression;
283
284 public ByXPath(String xpathExpression) {
285 super(
286 "xpath",
287 Require.argument("XPath", xpathExpression)
288 .nonNull("Cannot find elements when the XPath is null."));
289
290 this.xpathExpression = xpathExpression;
291 }
292
293 @Override
294 public String toString() {

Callers

nothing calls this directly

Calls 2

argumentMethod · 0.95
nonNullMethod · 0.45

Tested by

no test coverage detected