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

Method ByTagName

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

Source from the content-addressed store, hash-verified

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