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

[Feature]: Track the originator of http request #12422

Closed
Fly-Playgroud opened this issue May 10, 2024 · 1 comment
Closed

[Feature]: Track the originator of http request #12422

Fly-Playgroud opened this issue May 10, 2024 · 1 comment
Labels

Comments

@Fly-Playgroud
Copy link

Feature description

Is there any way to let me know that a certain or several http traffic is triggered by clicking on which element in the page?
I want to know the element that initiates these http traffic

@OrKoN
Copy link
Collaborator

OrKoN commented May 10, 2024

See https://pptr.dev/api/puppeteer.httprequest.initiator/ which returns the information about the initiator of the request. Note that elements are not initiators of requests so it is not possible to associate a request with a DOM element. Also, see #12331

@OrKoN OrKoN closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants