无法从节点连接读取描述符:在Windows操作系统上使用ChromeDriver Selenium连接到系统的设备无法正常运行 [英] Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS

查看:117
本文介绍了无法从节点连接读取描述符:在Windows操作系统上使用ChromeDriver Selenium连接到系统的设备无法正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在python中运行selenium webdriver脚本时遇到了这个问题,我也在系统环境中设置了路径,还尝试下载与我的chrome版本匹配的webdriver.以及letest版本.但我仍然收到此错误:

I got this while running the selenium webdriver script in python I also set the path in System Environment and also tried downloading the webdriver that matches with my chrome version. And also letest version also. But I still get this error:

[8552:6856:1120/155118.770:ERROR:device_event_log_impl.cc(211)] [15:51:18.771] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8552:6856:1120/155118.774:ERROR:device_event_log_impl.cc(211)] [15:51:18.774] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8552:6856:1120/155118.821:ERROR:device_event_log_impl.cc(211)] [15:51:18.821] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)

我在代码中使用了它:

driver = webdriver.Chrome(resource_path("C:\\webdriver\\chromedriver.exe"))  # to open the chromebrowser
driver.get("https://web.whatsapp.com")

推荐答案

一个星期后,找到了我的错误的答案,我得出了一个解决方案,您只需要安装pywin32库,它就不会给您错误.

After a week of finding an answer to my error, I ended up with a solution that you just need to install pywin32 library and it will not gives you an error

打开cmd并输入

pip安装pywin32

pip install pywin32

你很好.....!

这篇关于无法从节点连接读取描述符:在Windows操作系统上使用ChromeDriver Selenium连接到系统的设备无法正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆