question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get request when click?

See original GitHub issue

How to make the request sent by the click element match it, and get all the requests when I click, page.on ('response') will get all the requests, which is very confusing. page.waitForResponse (response, => response.ok ()) can only get one, what do I need to do?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kblokcommented, Dec 13, 2019

Yeah, the only way I could think for solving this, would be a flag that you turn on before clicking and you turn off after getting the request, but that’s not 100% accurate. You have to think that a single click might trigger lots of requests.

0reactions
stale[bot]commented, Jul 27, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sending GET Request when Button is Clicked
First, you add jQuery in your html file. We use ajax method for send request. Here is my ...
Read more >
How do I send a GET request using JavaScript?
To send GET requests from Node.js, you can use the "http" built-in ... Click "Run" to run the sample JavaScript GET request online...
Read more >
How to get http Request for a Link when click
How to pass http request when clicking the link. In view i have a link like this. Copy Code @foreach($productTags as $tags) <a ......
Read more >
Make an Http request on click in React
To make an http request on click in React, set the `onClick` prop on an element. Every time the element is clicked, make...
Read more >
How to make a POST request without asking user to click ...
To add an object to a POST request in JavaScript, you can use the FormData object to create a form with the object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found