Sha*_*Sha 21 selenium-chromedriver
您好,我在配备 Apple M2 芯片的 Mac 上使用 Selenium,从 10 天开始,我不断收到以下错误(最初我没有此错误,但我更换了计算机,现在我无法再使用 Selenium):
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/106.0.5249/chromedriver_mac64_m1.zip
Run Code Online (Sandbox Code Playgroud)
我阅读了有关此问题的以下主题:
https://groups.google.com/g/chromedriver-users/c/JRuQzH3qr2c?pli=1
https://github.com/SergeyPirogov/webdriver_manager/issues/443
但我不明白如何解决这个问题。
我尝试更新 webdriver-manager 但仍然遇到相同的错误。
我还在这里下载了最新版本的 chromedriver https://sites.google.com/chromium.org/driver/但随后无法理解下一步该做什么。
任何帮助或意见将不胜感激。
pas*_*ham 33
我有同样的问题,我是这样纠正的
python3 -m pip install webdriver-manager --upgrade
python3 -m pip install packaging
Run Code Online (Sandbox Code Playgroud)
小智 13
您必须切换到版本114.0.5735.90。因为下载版本115.0.5790.102的终点已更改,并且chrome驱动程序管理器尚未更新。因此下面的代码应该可以工作。
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager(version='114.0.5735.90').install()))
Run Code Online (Sandbox Code Playgroud)
在这里找到了这个 - https://github.com/SergeyPirogov/webdriver_manager/pull/445
pip uninstall webdriver_manager
pip install git+https://github.com/SergeyPirogov/webdriver_manager@master
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
34790 次 |
| 最近记录: |