Hacker News new | ask | show | jobs
by jayflux 3277 days ago
Poltergeist had a network_traffic mode which we found quite useful. (Seeing if requests were made etc)

Does Chrome headless have an equivalent? It's the only thing preventing us from moving across. And if not where should I raise it?

2 comments

Headless Chrome is controlled using the Chrome DevTools protocol, which has quite a few options for tracking and modifying network requests.

Everything you get in the Network inspector in Chrome DevTools should be available in Headless Chrome.

https://chromedevtools.github.io/devtools-protocol/tot/Netwo...

Not that I know of, but AFAIK you can use a proxy.

Even with Poltergeist I used to debug a slow test suite with it's `--proxy-server` option.

You can fire up mitmproxy and see the requests flowing in real time. You can even modify them or replay them.