Forum Discussion

Jacky011's avatar
Jacky011
Copper Contributor
Oct 02, 2021

selenium_tools error how to fix?

I just write only this but got error alot
```
from msedge.selenium_tools import Edge,EdgeOptions
from csv import DictReader


options = EdgeOptions()
options.use_chromium = True

driver = Edge(options = options)
```
[23392:25908:1002/200107.674:ERROR:chrome_browser_main_extra_parts_metrics.cc(250)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[23392:12156:1002/200107.679:ERROR:device_event_log_impl.cc(214)] [20:01:07.679] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[23392:12156:1002/200107.680:ERROR:device_event_log_impl.cc(214)] [20:01:07.679] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[23392:12156:1002/200107.682:ERROR:device_event_log_impl.cc(214)] [20:01:07.682] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[23392:12156:1002/200107.687:ERROR:device_event_log_impl.cc(214)] [20:01:07.686] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[23392:12156:1002/200107.695:ERROR:device_event_log_impl.cc(214)] [20:01:07.694] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) > & C:/Users/godja/AppData/Local/Programs/Python/Python39/python.exe "c:/Bot/bot drop/run.py"
[23392:25908:1002/200107.708:ERROR:chrome_browser_main_extra_parts_metrics.cc(254)] crbug.com/1216328: Checking default browser status ended.
DevTools listening on ws://127.0.0.1:13451/devtools/browser/6602e511-580f-40b2-8278-a3b516d568efes not have campaigns. [object Object] Sat Oct 02 2021 20:01:27 GMT+0700 (Indochina Time)", source: https://assePS C:\Bot\bot drop> [8860:4732:1002/201105.665:ERROR:chrome_browser_main_extra_parts_metrics.cc(250)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this
ends.2:25904:1002/200306.056:ERROR:gpu_init.cc(458)] Passthrough is not supported, GL is disabled, ANGLE is
[8860:20376:1002/201105.671:ERROR:device_event_log_impl.cc(214)] [20:11:05.672] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8860:20376:1002/201105.673:ERROR:device_event_log_impl.cc(214)] [20:11:05.674] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8860:20376:1002/201105.674:ERROR:device_event_log_impl.cc(214)] [20:11:05.675] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8860:20376:1002/201105.675:ERROR:device_event_log_impl.cc(214)] [20:11:05.675] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8860:20376:1002/201105.681:ERROR:device_event_log_impl.cc(214)] [20:11:05.681] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8860:4732:1002/201105.709:ERROR:chrome_browser_main_extra_parts_metrics.cc(254)] crbug.com/1216328: Checking default browser status ended.
[8860:20376:1002/201111.090:ERROR:CONSOLE(1)] "PSL: window.chrome.ntpSettingsPrivate.getPref does not have campaigns. [object Object] Sat Oct 02 2021 20:11:11 GMT+0700 (Indochina Time)", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/vendors.6cf643bd90ff961f1939.js (1)
```
 
@selenium
  • nh905's avatar
    nh905
    Copper Contributor
    Jacky011, I have been seeing a growing number of error messages from the Selenium Chromedriver, including the one you show. The instructions at https://stackoverflow.com/questions/69441767/error-using-selenium-chrome-webdriver-with-python suppressed the irrelevant messages. My code was creating the webdriver instance and passing the location of chromedriver.exe. I added the options= and options.add lines first, then added ", options=options" to the line where I created the webdriver instance.
    • fredj2260's avatar
      fredj2260
      Copper Contributor

      nh905  Even with the Stack overflow instructions, I am still not able to create a session with the selenium. Any further recommendations are much appreciated. 

Share

Resources