Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get brower network requests with Selenium for JavaScript

I'm using Selenium with chromeDriver for JavaScript and I want to get all network logs from the Browser with their payload. I searched a lot but, there are ways to get the requests, but only the URL and not the payload. The Chrome Devtools are able to record and track the requests in all of their details, why is there no simple way to do it in JavaScript?

Any help is appreciated!

like image 413
Knerbel Avatar asked Sep 08 '26 12:09

Knerbel


1 Answers

maybe this one will help your case https://github.com/dipansaha/BrowserMobNodeSelenium

but if you want to look an alternative , you can use puppeteer there is avaliable function to get request and response url

like image 151
taqin Avatar answered Sep 10 '26 02:09

taqin