当前位置:网站首页>Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute

Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute

2022-07-07 09:14:00 zhangyr0916

Question why :

Use pip install selenium, The latest version is installed by default selenium,selenium 3.x Start ,webdriver/firefox/webdriver.py Of __init__ in ,executable_path="geckodriver"; and 2.x yes executable_path="wires"

terms of settlement :

1. download geckodriver: Download link :Releases · mozilla/geckodriver · GitHub

2. Will download and unzip geckodriver.exe File down Firefox Installation directory

3. Add environment variables :Firefox Installation directory

4. Restart PyCharm, Just run it again .

5. If not, then unzip the downloaded geckodriver.exe Copy files to copy in Python Of Script in .

原网站

版权声明
本文为[zhangyr0916]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130627504684.html