close

[Solved] Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS Error Occurs?

Today I get the following error Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS in Python.

How To Solve Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS Error ?

  1. How To Solve Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS Error ?

    To Solve Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS Error The general solution on the internet just seems to be “ignore it”, but it sure clutters up the logs a lot.

Solution 1

This is a chromedriver issue that they’re still working the kinks out of. I’m not entirely sure what’s causing it, but the technical details seem to be detailed in Debanjan’s answer.

The general solution on the internet just seems to be “ignore it”, but it sure clutters up the logs a lot.

I did find a way to get it to shut up though (as well as the “DevTools” warning that pops up a lot as well).

options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)

You can add your other chromedriver options and switches onto that as well, in addition to pointing to your chromedriver executable if you wish.

Solution 2

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

open cmd and type

pip install pywin32

and you are good to go…..!

Solution 3

The error is probably because you have used parenthesis in the resource_path variable. The code should be as following:

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

if still there is any problem you can try keeping the web driver in the same folder as the python file.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment