Skip to content

Instantly share code, notes, and snippets.

@Jim-Holmstroem
Last active July 5, 2016 13:26
Show Gist options
  • Save Jim-Holmstroem/9ade939a7e7a71eab208137939683960 to your computer and use it in GitHub Desktop.
Save Jim-Holmstroem/9ade939a7e7a71eab208137939683960 to your computer and use it in GitHub Desktop.
Get the log from firefox when running it selenium headless
from selenium.webdriver import Firefox
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
import sys
driver = Firefox(firefox_binary=FirefoxBinary(log_file=sys.stdout))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment