Skip to content

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

@philipbrown

Description

@philipbrown

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions