selectAll

open suspend override fun selectAll(selector: String, timeout: Long, includeFrames: Boolean): List<Element>

Finds multiple elements by CSS selector, optionally waiting for them to appear.

Can also be used to wait for such elements to appear. Optionally includes results from iframes.

Return

List of found Elements.

Parameters

selector

CSS selector, e\.g\., a[href], button[class*=close], a > img[src]

timeout

Raise timeout exception when after this many milliseconds nothing is found.

includeFrames

Whether to include results in iframes.

Throws

if no elements are found within the timeout.