querySelectorAll

abstract suspend fun querySelectorAll(selector: String, node: NodeOrElement? = null): List<Element>

Equivalent of JavaScript's document.querySelectorAll. This is considered one of the main methods to use in this package.

It returns all matching Element objects.

Return

List of matching Elements.

Parameters

selector

CSS selector. (first time? See https://www.w3schools.com/cssref/css_selectors.php)

node

For internal use. The node to start the search from. Defaults to the document root.