Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Save Firefox console to file?

Hey! I'm using Selenium with Firefox and I wanted to interact Python with the logs that appear in the console on Firefox.

I've come to the conclusion Python/Selenium cannot read the console "directly" (based on the research I have done), so I have become desperate and thought maybe there are other ways of saving the logs into a file?

Does anyone have any input?
I found this:
https://stackoverflow.com/questions/2543...using-java

You could use this:
Code
LogEntries logs = driver.manage().logs().get("browser");

Another idea is to overwrite console.log and store the los where selenium can read it


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by VoxiFeb 27, 2019 03:55 PM 3 259 Feb 27, 2019 03:55 PM
Last Post: Voxi
[Shell] by TimanxdDec 13, 2018 02:32 AM 7 292 Dec 13, 2018 02:32 AM
Last Post: Bobbyx28
[Python] by DrazardMar 14, 2017 09:32 PM 8 258 Mar 14, 2017 09:32 PM
Last Post: Drazard