findAll

abstract suspend fun findAll(text: String, timeout: Long): List<Element>

Finds multiple elements by their text content, optionally waiting for them to appear.

This method searches for all elements containing the specified text. If no elements are found, it waits and retries until at least one element is found or the timeout is reached.

Return

A list of found Elements.

Parameters

text

The text to search for. Note: script contents are also considered text.

timeout

The maximum time in milliseconds to wait for elements to appear before raising a timeout exception.

Throws

if no elements are found within the timeout.