Failed to Read Descriptor from Node Connection Error in ChromeDriver and Chrome v87
Problem:
Users have encountered an error during Chrome v87 and ChromeDriver v87.0.4280.20 upgradations, particularly the "Failed to read descriptor from node connection: A device attached to the system is not functioning" error in Windows 10.
Cause:
While the root cause of this error remains unclear, it seems specific to the latest ChromeDriver versions.
Solution:
To address this issue, a quick fix is available through an experimental option:
options.add_experimental_option('excludeSwitches', ['enable-logging'])
Updated Code:
from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("start-maximized") # Suppress error messages/logs options.add_experimental_option('excludeSwitches', ['enable-logging']) driver = webdriver.Chrome(options=options, executable_path=r'C:\WebDrivers\chromedriver.exe') driver.get('https://www.google.com/')
By suppressing the error messages with the excludeSwitches option, the error log can be hidden without affecting the browser functionality.
The above is the detailed content of How to Fix 'Failed to read descriptor from node connection' Error in ChromeDriver and Chrome v87?. For more information, please follow other related articles on the PHP Chinese website!