Using selenium webriver for the first time, webdriver.Firefox ()
Error report selenium.common.exceptions . webdriverexception: Message: ‘geckodriver’ executable needs to be in path.
Windows processing method:
1. Download geckodriver.exe :
Download address: https://github.com/mozilla/geckodriver/releases
Choose to download according to the system version (such as windows 64 bit system)
2. After downloading and decompressing, the getckodriver.exe Put it in the python installation directory. If you have checked addtopath when installing python, you don’t need to do anything. Otherwise, you need to add the python installation directory to the system variable environment variable path.
3. Run the code again
2
Other browsers have similar processing methods; download address of each browser driver
https://www.seleniumhq.org/about/platforms.jsp#browsers
firefox: https://github.com/mozilla/geckodriver/releases/
chrome: https://code.google.com/p/chromedriver/downloads/list
ie: http://selenium-release.storage.googleapis.com/index.html
Similar Posts:
- Message: ‘geckodriver’ executable needs to be in PATH. [Solved]
- Error when uirecorder starts webdriver service
- Error reporting in Firefox using selenium in Python
- Under Ubuntu system, selenium opens the Firefox browser and prompts’ unable to find a matching set of capabilities. And message: connect
- The XPath tool plug-in for Firefox browser (not supported by advanced versions of Firefox)
- Chromedriver executable needs to be in path [How to Solve]
- Npapi and ppapi problems of “application / x-vlc-plugin not supported”
- [Solved] libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- Mac environment and python + selenium environment are built to solve the error reporting problem of chromedriver
- [Solved] Wget: Unable to establish SSL connection