WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
Step 1) Download geckodriver.exe
In window platform meet this error, download geckodriver and unzip downloaded filehttps://github.com/mozilla/geckodriver/releases
Step 2) Move geckodrive.exe to Firefox installation directory
Cut the geckodriver.exe and paste to firefox's installation directory, an reference from mozilla official site :I am using windows and 64bits firefox, so the installation directory is C:\Program Files (x86)\Mozilla Firefox :
Step 3) Set environment variable
start command prompt and run this command:set PATH=%PATH%;C:\Program Files (x86)\Mozilla Firefox
or set it via control panel :
Step 4) Restart your command prompt
Restart the command you used for load geckodriver.Reference
http://kb.mozillazine.org/Installation_directoryhttps://github.com/mozilla/geckodriver
No comments :
Post a Comment