Skip to content

Conversation

@adam1010
Copy link

@adam1010 adam1010 commented Dec 9, 2025

I found two issues when trying to use this function (both are corrected in this PR)

  1. the isFunction flag needs to be set (I verified this by looking at events sent by the node version of Playwright)

  2. The generator was not being run. Adding the processVoidResponse() by itself didn't work, because waitForFunction is not Page operation, it's a Frame operation. So I switched to using sendMessage() which properly makes this distinction.

I found a few other similar bugs but wanted to limit this PR's scope. I also have a few suggestions/requests to allow me to use this in my CI pipeline that I'd love to discuss when you have time. Great work on this package!

@adam1010
Copy link
Author

@skylerkatz @nunomaduro Did you have any questions about this bug fix?

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.

1 participant