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

Method className

java/src/org/openqa/selenium/By.java:100–102  ·  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

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

Calls

no outgoing calls