goto

open suspend override fun goto(url: String, waitUntil: WaitUntil, timeoutMillis: Long): NavigationResult

Navigates and waits for waitUntil.

On expiry the call returns with NavigationResult.settled false rather than throwing: partial content is usually still useful.

Throws

BrowserException

ErrorCode.NAVIGATION_FAILED if the document could not be loaded, ErrorCode.SSRF_BLOCKED if the URL resolved to an address the host app did not allow, at any point in a redirect chain.