MCPcopy
hub / github.com/SeleniumHQ/selenium / ByTagName

Method ByTagName

java/src/org/openqa/selenium/By.java:260–271  ·  view source on GitHub ↗
(String tagName)

Source from the content-addressed store, hash-verified

258 private final String tagName;
259
260 public ByTagName(String tagName) {
261 super(
262 "tag name",
263 Require.argument("Tag name", tagName)
264 .nonNull("Cannot find elements when the tag name is null."));
265
266 if (tagName.isEmpty()) {
267 throw new InvalidSelectorException("Tag name must not be blank");
268 }
269
270 this.tagName = tagName;
271 }
272
273 @Override
274 public String toString() {

Callers

nothing calls this directly

Calls 3

argumentMethod · 0.95
nonNullMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected