Skip to content

Lightpanda: the headless browser designed for AI and automation

goto: warn against 'done' in the waitUntil description

Adrià Arrufatffd293a18e1a
diff --git a/src/browser/tools.zig b/src/browser/tools.zig
index 40bccb395..250a53788 100644
--- a/src/browser/tools.zig
+++ b/src/browser/tools.zig
@@ -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"]
\\}