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.
I did not get any solution till yet.