我正在使用selenium和python,并从我的网站下载了我的Windows计算机的chromedriver:http://chromedriver.storage.googleapis.com/index.html?path = 2.15 /
下载zip文件后,我将zip文件解压缩到我的下载文件夹.然后我将路径到可执行二进制文件(C:\ Users\michael\Downloads\chromedriver_win32)放入环境变量"路径".
但是,当我运行以下代码时:
from selenium import webdriver
driver = webdriver.Chrome()
Run Code Online (Sandbox Code Playgroud)
...我一直收到以下错误消息:
WebDriverException: Message: 'chromedriver' executable needs to be available in the path. Please look at http://docs.seleniumhq.org/download/#thirdPartyDrivers and read up at http://code.google.com/p/selenium/wiki/ChromeDriver
Run Code Online (Sandbox Code Playgroud)
但是 - 如上所述 - 可执行文件是(!)在路径中...这里发生了什么?
您好,我在配备 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/但随后无法理解下一步该做什么。
任何帮助或意见将不胜感激。
我是Selenium的新人,我现在可以用selenium和Chromedriver做基本的自动测试,代码运行正常,但问题是Chrome浏览器总是在后端自动更新,Chrome更新后代码总是无法运行. 我知道我需要下载新的 chromedriver 来解决这个问题,但我想知道是否有任何方法可以在不禁用 chromebrowser 更新的情况下解决这个问题?tks。
我使用的是 Windows 10 / Chrome 版本 67 / Python 3.6.4 / Selenium 3.12.0
python selenium google-chrome selenium-chromedriver selenium-webdriver
嘿,我有这个简单的代码来使用 selenium 打开谷歌
from selenium import webdriver
import chromedriver_binary
driver = webdriver.Chrome()
driver.get('https://google.com')
Run Code Online (Sandbox Code Playgroud)
我没有打开谷歌页面,而是收到此错误。
Traceback (most recent call last):
File "main.py", line 5, in <module>
driver = webdriver.Chrome()
File "C:\Users\vipku\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__
RemoteWebDriver.__init__(
File "C:\Users\vipku\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\vipku\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\vipku\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\vipku\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only …Run Code Online (Sandbox Code Playgroud) python selenium google-chrome selenium-chromedriver selenium-webdriver