問題描述
我在 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)
我在我的代碼中使用了這個:
I used this in my code :
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 并輸入
點安裝 pywin32
pip install pywin32
你很高興......!
and you are good to go.....!
這篇關于無法從節點連接讀取描述符:在 Windows 操作系統上使用 ChromeDriver Selenium 連接到系統的設備無法運行錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!