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

Method ByName

java/src/org/openqa/selenium/By.java:242–249  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

240 private final String name;
241
242 public ByName(String name) {
243 super(
244 "name",
245 Require.argument("Name", name).nonNull("Cannot find elements when name text is null."),
246 "*[name='" + name.replace("\\", "\\\\").replace("'", "\\'").replace("%", "%%") + "']");
247
248 this.name = name;
249 }
250
251 @Override
252 public String toString() {

Callers

nothing calls this directly

Calls 2

argumentMethod · 0.95
nonNullMethod · 0.45

Tested by

no test coverage detected