Skip to content

Commit 7744a3e

Browse files
Update stagehand/page.py
thx Sean! Co-authored-by: Sean McGuire <75873287+seanmcguire12@users.noreply.github.com>
1 parent 62898c1 commit 7744a3e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

stagehand/page.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,13 @@ async def _wait_for_settled_dom(self, timeout_ms: int = None):
486486
await client.send("Page.enable")
487487
await client.send(
488488
"Target.setAutoAttach",
489-
{"autoAttach": True, "waitForDebuggerOnStart": False, "flatten": True},
489+
{"autoAttach": True,
490+
"waitForDebuggerOnStart": False,
491+
"flatten": True,
492+
"filter": [
493+
{ "type" : "worker", "exclude": True},
494+
{ "type": "shared_worker", "exclude": True }
495+
]},
490496
)
491497

492498
# Set up tracking structures

0 commit comments

Comments
 (0)