MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / cssSelector

Method cssSelector

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

Find elements via the driver's underlying W3C Selector engine. If the browser does not implement the Selector API, the best effort is made to emulate the API. In this case, we strive for at least CSS2 support, but offer no guarantees. @param cssSelector CSS expression. @return A By which locates el

(String cssSelector)

Source from the content-addressed store, hash-verified

110 * @return A By which locates elements by CSS.
111 */
112 public static By cssSelector(String cssSelector) {
113 return new ByCssSelector(cssSelector);
114 }
115
116 /**
117 * Find a single element. Override this method if necessary.

Calls

no outgoing calls