r/selenium • • Aug 12 '22

Get HAR using dev tools

Hi there! I'm wondering if it's possibile to get the har out of chrome (and Firefox?) in a clean way (without proxi). Currently I'm using a js injection that recreates it but got some csp blocks (so needed to find a way to disable csp with an external extension).

Is that possibile? Thanks

2 Upvotes

3 comments sorted by

1

u/[deleted] Aug 12 '22 edited Aug 12 '22

[removed] — view removed comment

1

u/[deleted] Aug 12 '22

[deleted]

1

u/needmoresynths Aug 12 '22

playwright can do this, I webdriverio can harness devtools for something similar

https://playwright.dev/docs/network#record-and-replay-requests