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

Method className

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

Find elements based on the value of the "class" attribute. Only one class name should be used. If an element has multiple classes, please use By#cssSelector(String). @param className The value of the "class" attribute to search for. @return A By which locates elements by the value of the "c

(String className)

Source from the content-addressed store, hash-verified

99 * @return A By which locates elements by the value of the "class" attribute.
100 */
101 public static By className(String className) {
102 return new ByClassName(className);
103 }
104
105 /**
106 * Find elements via the driver's underlying W3C Selector engine. If the browser does not

Calls

no outgoing calls