querySelector

open suspend override fun querySelector(selector: String): Element?

Finds the first descendant element matching the given CSS selector, similar to JavaScript's querySelector().

Return

The first matching Element, or null if none found.

Parameters

selector

The CSS selector to match.