Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the response body from inside Page.on/3 callback #67

Open
philipbrown opened this issue Oct 9, 2024 · 0 comments
Open

Get the response body from inside Page.on/3 callback #67

philipbrown opened this issue Oct 9, 2024 · 0 comments

Comments

@philipbrown
Copy link

Is it possible to get the response body from inside the Page.on/3 callback?

This doesn't work:

Playwright.Page.on(page, :response, fn event ->
  Playwright.Response.body(event.params.response)
end)

I get the following error:

process attempted to call itself
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

No branches or pull requests

1 participant