Skip to content

Commit 1c14851

Browse files
committed
fix: pass resolved page to wait_for response snapshot
The wait_for tool correctly waited on the isolatedContext page but the snapshot attached to its response fell back to the globally selected page, causing the wrong page content to be returned.
1 parent 1334653 commit 1c14851

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/snapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ export const waitFor = defineTool({
7676
`Element with text "${request.params.text}" found.`,
7777
);
7878

79-
response.includeSnapshot();
79+
response.includeSnapshot({ page });
8080
},
8181
});

0 commit comments

Comments
 (0)