In python, selenium. Is there a way to see the amount of data taken to load a site?
In python, selenium. Is there a way to see the amount of data taken to load a site?
I'm often using selenium and I would like to know from browser.Firefox() to browser.close(), how much data i used to load everything. Is this something selenium can measure?
1 Answer
1
No, you can't access to requests and response data to do what you want.
To do it, you could set a proxy to log the requests and the response. browsermob-proxy is widely used for this tasks, especially for selenium.
Or alternatively, use selenium-wire instead of selenium.
If you're interested and want some valid code example, you can email me. You find my address in my profile.
Regards
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.