

Also you can put it anywhere as long as the location of the file it is in your system path. You should download appropriate web driver from and put it into folder where your py file is. I have uninstalled firefox and installed it again which resolved my issue.

SessionNotCreatedException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' I'm trying to run GeckoDriver v0.26.0 inside an Alpine 3.10 docker container, specifically python:3.6.6-alpine3.10.

You can find a couple of relevant detailed discussion in: Options.binary_location = r'C:\Program Files\Mozilla Firefox\firefox.exe'ĭriver = webdriver.Firefox(executable_path=r'C:\WebDrivers\geckodriver.exe', options=options) Possibly within your system firefox is installed in a custom location and these cases you need to pass the absolute path of the Firefox binary through the moz:firefoxOptions.binary capability as follows: from selenium import webdriverįrom import Options Additionally you haven't passed the moz:firefoxOptions.binary capability. It is to be noted that the current Selenium-Python binding is unstable with geckodriver and looks to be Architecture specific. Turned 'marionette' to true and added executablepath while initializing the driver. Now as per Selenium 3.4.x specifications, I made a couple of modifications. implies that the GeckoDriver was unable to find the Firefox binary at the default location. Result: Mozilla Firefox version 47 is opened. Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line.
