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.

v1 strategy: polling only. The plan envisions an event-driven path via CDP Network.responseReceived / BiDi network.responseCompleted, but for v1 simplicity we poll Network.getAllCookies / storage.getCookies 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