【发布时间】:2026-02-14 18:10:01
【问题描述】:
我们最近使用 ChromeDriver v87.0.4280.20 和 Chrome v87.0.4280.66(官方构建)(64 位)升级了我们的 Windows 10 测试环境,升级后甚至是最小的程序正在生成此错误日志:
[9848:10684:1201/013233.169:ERROR:device_event_log_impl.cc(211)] [01:32:33.170] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
最小代码块:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
driver = webdriver.Chrome(options=options, executable_path=r'C:\WebDrivers\chromedriver.exe')
driver.get('https://www.google.com/')
控制台输出:
DevTools listening on ws://127.0.0.1:64170/devtools/browser/2fb4bb93-79ab-4131-9e4a-3b65c08dbffb
[9848:10684:1201/013233.169:ERROR:device_event_log_impl.cc(211)] [01:32:33.170] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[9848:10684:1201/013233.172:ERROR:device_event_log_impl.cc(211)] [01:32:33.173] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
有人面临同样的情况吗? ChromeDriver/Chrome v87 相对于 ChromeDriver/Chrome v86 是否有任何变化?有什么线索吗?
【问题讨论】:
标签: python selenium google-chrome selenium-chromedriver webusb