0

Lets say I open up an URL in chrome or in any browser. Now I want to save the console logs or messages in a file so that I can perform certain validations. Can we do this using python? Please let me know how to do this? Note: The solution should work if I run browser in headless mode. Browser console

I did not get any solution till yet.

Asit
  • 49
  • 6
  • We can do this using selenium drivers, This might be solution you are looking for [Getting console.log output from Chrome with Selenium Python API bindings](https://stackoverflow.com/questions/20907180/getting-console-log-output-from-chrome-with-selenium-python-api-bindings) – Usman Arshad Nov 29 '22 at 06:00

0 Answers0