Skip to content

[Feature] Expose type definition and docs for request._guid to uniquely identify a request ID #13246

@davidbielik

Description

@davidbielik

Hi, in puppeteer there was a request._requestId which gave a unique ID to each network request. Does something similar exist in playwright?

I've tried making my own using ${request.utl()}-${request.timing().startTime} but realize that startTime seems to be 0 within page.on('request') but has a timestamp on page.on('response').

My use case is that I want to keep track of all requests, and later associate the responses accordingly, so that I can maintain a list of which requests were attempted, finished, and unable to finish in the given timeout.

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