V
V
Vladislav2020-08-12 15:02:34
PHP
Vladislav, 2020-08-12 15:02:34

How to get XHR response like in console Network?

u-OKRULFZ7A.jpg
I use this lib: https://github.com/php-webdriver/php-webdriver

How can I get what requests the XHR site is sending and their responses?
In normal mode in the browser, this is done through F12 and Network
And in Selenium how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-08-12
@cr1gger

There is a popular BrowserMob Proxy solution. There are few solutions for php, the latest wrapper for it is RapidSpike/php-browsermob-proxy . There is no documentation, you can look at the test code inside the package or look for code examples in Java / Javascript to catch the idea and make it similar for yourself)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question