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.

Do we have a document or example on how to use some events like `Network.responseReceived`...

See original GitHub issue

Do we have a document or example on how to use some event likes

Network.requestWillBeSent
Network.requestIntercepted
Network.responseReceived
Network.loadingFinished
Network.loadingFailed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pavelfeldmancommented, Jun 23, 2020

Overall, Playwright discourages the direct use of CDP. Our goal is to be vendor independent while CDP limits your tests to Chromium only.

It is useful for us to know when something is missing in the Playwright API so that we could expose it universally for all the browsers. Could you share what you are trying to do? Events that you lost all bubble up through the Playwright API…

0reactions
pavelfeldmancommented, Jun 28, 2020

@phileba : https://chromedevtools.github.io/devtools-protocol/ is the best source of info on CDP. You have a CDP sessions, so you can enable agents and communicate with the browser. Explaining how to work with CDP is outside of the scope of Playwright, so sadly you are on ypur own there. I will comment on your hightlight bug separately!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The power of Chrome Devtools Protocol - Network domain
Let's show the manual example first of how to use the Network tab in Chrome. We will be recording some requests based on...
Read more >
Network domain - Chrome DevTools Protocol - GitHub Pages
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers ......
Read more >
Selenium 4 Key Feature: Network Interception
You can get access to the Network HTTP requests when you make the call to the particular domain. For example, if you type...
Read more >
#5 - How to extract Network Responses and status codes with ...
In this video, I have explained how to extract Network responses,headers and status codes with Selenium for better Integration testing.
Read more >
How to get HTTP responseBody using Selenium, CDP ...
load response body here } });. I use Network.loadingFinished event instead of Network.responseReceived , as the response is then completely ...
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