0

Trying my hand at controlling Chrome with Selenium. Chrome crashes about 1-2 seconds after opening.

Error Log:

[34512:40740:0119/145119.436:ERROR:device_event_log_impl.cc(215)\] \[14:51:19.436\] USB: usb_service_win.cc:415 Could not read device interface GUIDs: The system cannot find the file specified. (0x2)

[34512:40740:0119/145119.440:ERROR:device_event_log_impl.cc(215)\] \[14:51:19.439\] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) \[34512:40740:0119/145119.445:ERROR:device_event_log_impl.cc(215)\]

[14:51:19.445\] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)

Code Block:

from selenium.webdriver.chrome.service import Service
from selenium import webdriver

service = Service(executable_path="C:/Users/haseBradshaw/Downloads/chromedriver_win32")
driver = webdriver.Chrome(service=service)

driver = webdriver.Chrome()
driver.get("https://www.selenium.dev/selenium/web/web-form.html")

I've read this post. From what I am able to gather from this, it appears these errors should not be causing a crash. USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection error with ChromeDriver v87 / Chrome v87 using Selenium on Windows10

I've navigated to chomre://flags but there is no #enable-new-usb-backend

I've already ensured my version of chrome driver matches with my version of chrome.

I've inspected chrome://crashes/, but there are no logs.

  1. Are these errors the reason why chrome is crashing?
  2. How can I fix these errors?

0 Answers0