【问题标题】:Selenium: Opening chrome browser catching ErrorsSelenium:打开 chrome 浏览器捕获错误
【发布时间】:2021-11-14 01:22:59
【问题描述】:

当尝试通过webdriver.Chrome()打开chrome浏览器时,它返回errors

DevTools listening on ws://127.0.0.1:49645/devtools/browser/3c3d566d-8283-456e-9cae-4de285cd025e
PS C:\Users\Stellantt\Desktop\Selenium> [7896:6536:1114/074848.328:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
[7896:6536:1114/074848.328:ERROR:chrome_browser_main_extra_parts_metrics.cc(233)] crbug.com/1216328: Checking Bluetooth availability ended.
[7896:6536:1114/074848.328:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status started. Please report if there is no 
report that this ends.
[7896:6208:1114/074848.334:ERROR:device_event_log_impl.cc(214)] [07:48:48.334] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device 
attached to the system is not functioning. (0x1F)
[7896:6536:1114/074848.342:ERROR:chrome_browser_main_extra_parts_metrics.cc(240)] crbug.com/1216328: Checking default browser status ended.
[4920:3584:1114/075045.724:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is 

当我使用选项来修复它时:

options = webdriver.ChromeOptions()

options.add_experimental_option('excludeSwitches', ['enable-logging'])

driver = webdriver.Chrome(options=options)

它什么也没返回并终止了我的进程。

我该如何解决这个错误?

【问题讨论】:

    标签: python selenium google-chrome selenium-webdriver selenium-chromedriver


    【解决方案1】:

    这些错误信息...

    PS C:\Users\Stellantt\Desktop\Selenium> [7896:6536:1114/074848.328:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
    [7896:6536:1114/074848.328:ERROR:chrome_browser_main_extra_parts_metrics.cc(233)] crbug.com/1216328: Checking Bluetooth availability ended.
    [7896:6536:1114/074848.328:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status started. Please report if there is no 
    report that this ends.
    [7896:6208:1114/074848.334:ERROR:device_event_log_impl.cc(214)] [07:48:48.334] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device 
    attached to the system is not functioning. (0x1F)
    [7896:6536:1114/074848.342:ERROR:chrome_browser_main_extra_parts_metrics.cc(240)] crbug.com/1216328: Checking default browser status ended.
    [4920:3584:1114/075045.724:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is 
    

    ......是一个通用错误的结果,因为参数化测试由于在启动时记录昂贵的指标超时而变得不稳定

    这些错误/警告不会影响测试执行,您现在可以忽略它们。


    参考

    您可以在以下位置找到相关的详细讨论:

    【讨论】:

      猜你喜欢
      • 2021-06-10
      • 1970-01-01
      • 2017-07-26
      • 2017-01-13
      • 1970-01-01
      • 2022-12-18
      • 2021-08-31
      • 2012-04-08
      • 1970-01-01
      相关资源
      最近更新 更多