Unable to open Firefox browser using Selenium Unable to open Firefox browser using Selenium selenium selenium

Unable to open Firefox browser using Selenium


You should provide the location of your installed geckodriver:

browser = webdriver.Firefox(executable_path="/path/to/geckodriver")


There is one alternative to using Firefox. We can use Chromium instead. These are the setup steps:

sudo apt-get --yes --force-yes install chromium-browser xvfb unzipwget -N http://chromedriver.storage.googleapis.com/2.26/chromedriver_linux32.zipunzip chromedriver_linux32.zipchmod +x chromedriversudo mv -f chromedriver /usr/local/share/chromedriversudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriversudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver


If you are using Mac OS make sure you have run this command in Terminal

chmod a+x geckodriver