Python selenium open Firefox issue

pip install selenium
from selenium import webdriver
browser = webdriver.Firefox()
selenium.common.exceptions.WebDriverException: Message: Can’t load the profile. Profile Dir: /var/folders/qk/skn792dx1091rnqly1n0v7l40000gn/T/tmptus0j2r1 If you specified a log_file in the FirefoxBinary constructor, check it for details.

because if your Firefox version > 47 need to install geckodriver

cp geckodriver /usr/local/bin

ok, it work!

Meta: Firefox 51, python 3.6.0, selenium 3.0.2

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.