Skip to content

[Feature] page.waitForResponse support for async predicate function #4535

@mickykebe

Description

@mickykebe

The predicate with which I want to capture a response sometimes involves looking at the response body which returns a promise. It would be nice if the predicate function had promise support.

const response = await page.waitForResponse(async (response) => { return await response.text().includes('<html />') });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions