Python selenium enable logging with Firefox webdriver
问题 There seems to be a problem with my implementation but I'm not sure what the problem might be. It would be really helpful if I could check the log files (as mentioned in the exception): WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details. but the process doesn't write anything to the file I designate as the log file. from selenium import webdriver from selenium.webdriver