goto: warn against 'done' in the waitUntil description

Review feedback: 'done' sounds like what people want and is the slowest
option. Same treatment as waitForState's description.
This commit is contained in:
Adrià Arrufat committed 2026-08-05 08:59:28 +02:00
1 parent 4a49030af6
commit ffd293a18e
1 file changed
+1 -1
+1 -1
View File
@@ -342,7 +342,7 @@ pub const Tool = enum {
\\ "timeout": { "type": "integer", "description": "Optional timeout in milliseconds. Defaults to 10000." },
\\ "waitUntil": { "type": "string", "enum":
++ lp.Config.tagJsonArray(lp.Config.WaitUntil) ++
\\, "description": "Event that completes the navigation. Defaults to 'load'. Prefer 'domcontentloaded' followed by waitForSelector on pages whose late scripts (ads) hold 'load' back." }
\\, "description": "Event that completes the navigation. Defaults to 'load'. Prefer 'domcontentloaded' followed by waitForSelector on pages whose late scripts (ads) hold 'load' back. Avoid 'done' (full quiescence): on pages with constant background activity it is the slowest choice and can run to the timeout." }
\\ },
\\ "required": ["url"]
\\}