Skip to main content

Module wait_for_cookie

Module wait_for_cookie 

Source
Expand description

browser-control wait-for-cookie โ€” block until a cookie appears.

Browser-wide command โ€” tab suffixes on --browser are rejected.

v1 strategy: polling only. The plan envisions an event-driven path via CDP Network.responseReceived / BiDi network.responseCompleted, but for v1 simplicity we poll the browser cookie jar at a fixed interval until the matching cookie appears or the timeout elapses.

After a match, an optional --validate-url performs a fetch() from the page context (credentials included) and requires a 2xx status.

Functionsยง

run