Skip to content

Conversation

Zach10za
Copy link
Contributor

Currently the call to Playwright's page.evaluate for overlays is getting passed a list of ObserveResult objects which is not supported. This ends up becoming a list of undefined in javascript.

To fix this, the ObserveResult objects just need to be serialized using model_dump before passed to the draw_observe_overlay function. I added a simple type check as well which would have highlighted this issue.

@miguelg719 miguelg719 changed the base branch from main to contrib-198 September 10, 2025 18:45
@miguelg719 miguelg719 merged commit 8a05e10 into browserbase:contrib-198 Sep 10, 2025
12 of 13 checks passed
miguelg719 added a commit that referenced this pull request Sep 10, 2025
* Dump ObserveResult to dict before passing to draw_overlay (#198)

* changeset:

---------

Co-authored-by: Zach Loza <[email protected]>
@github-actions github-actions bot mentioned this pull request Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants