There are three ways to resolve this error.
- Download the gecko driver and keep it in directory where your python test script is there.
-
Set the environment variable “webdriver.gecko.driver” with driver path as value.
os.environ["webdriver.gecko.driver"]="c:\geckodriver.exe"
-
Pass executable path to the constructor like
driver = WebDriver.Firefox("path of executable")
More Related Contents:
- selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 46 through Selenium
- Expected browser binary location, but unable to find binary in default location, no ‘moz:firefoxOptions.binary’ capability provided using GeckoDriver
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH with GeckoDriver Selenium Firefox
- OSError: [Errno 8] Exec format error with GeckoDriver and Selenium on MacOS
- selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with GeckoDriver, Selenium and Firefox
- How to fix python-selenium error “connection refused” when initializing a selenium webdriver?
- Selenium using Python – Geckodriver executable needs to be in PATH
- WebDriverException: Message: invalid argument: can’t kill an exited process with GeckoDriver, Selenium and Python on RaspberryPi3
- How can I make a Selenium script undetectable using GeckoDriver and Firefox through Python?
- Download image with selenium python
- Selenium: FirefoxProfile exception Can’t load the profile
- Downloading file to specified location with Selenium and python
- How to fix “WebDriverException: Message: connection refused”?
- Selenium python Error: element could not be scrolled into view
- How to set Selenium Python WebDriver default timeout?
- Selenium using Python: enter/provide http proxy password for firefox
- Selenium – MoveTargetOutOfBoundsException with Firefox
- Setting path to firefox binary on windows with selenium webdriver
- FileNotFoundError: [Errno 2] No such file or directory: ‘geckodriver’: ‘geckodriver’ with GeckoDriver and Python in MAC OS
- How can Geckodriver/Firefox work without Marionette? (running python selenium 3 against FF 53)
- Download and save multiple csv files using selenium and python from popup
- Selenium using too much RAM with Firefox
- Why switching to alert through selenium is not stable?
- IOError: [Errno 13] Permission denied: ‘geckodriver.log when running Python/Selenium
- ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
- “Failed to decode response from marionette” message in Python/Firefox headless scraping script
- How to select a drop-down menu value with Selenium using Python?
- How to make Firefox headless programmatically in Selenium with Python?
- Error Message: ‘chromedriver’ executable needs to be PATH
- How do I get current URL in Selenium Webdriver 2 Python?