首页 > 解决方案 > Windows WebAuthn API 无法使用 Selenium 加载错误

问题描述

我正在使用 Selenium 刮刀,即使我从命令行运行它,也会不断收到以下错误。该错误是间歇性的,我无法弄清楚是什么原因造成的。

有谁知道问题可能是什么?

====== WebDriver manager ======
Current google-chrome version is 91.0.4472
Get LATEST driver version for 91.0.4472
Driver [C:\Users\Administrator\.wdm\drivers\chromedriver\win32\91.0.4472.101\chromedriver.exe] found in cache
DevTools listening on ws://127.0.0.1:56822/devtools/browser/fe997c85-6678-4c62-8976-94de066df479
[4516:10632:0713/171711.583:ERROR:device_event_log_impl.cc(214)] [17:17:11.584] FIDO: webauthn_api.cc:53 Windows WebAuthn API failed to load
[4516:10632:0713/171711.597:ERROR:device_event_log_impl.cc(214)] [17:17:11.596] Bluetooth: bluetooth_adapter_winrt.cc:712 GetBluetoothAdapterStaticsActivationFactory failed: Class not registered (0x80040154)
Gol
['Libt ', ' 13 Jul 2021, 16:00']
Gol
['Libt ', ' 13 Jul 2021, 16:00']
Gol
['Libt ', ' 13 Jul 2021, 16:00']
Gol
['Libt ', ' 13 Jul 2021, 16:00']
Traceback (most recent call last):
  File "C:\scrape.py", line 194, in <module>
    scrape()
  File "C:\scrape.py", line 186, in scrape
    writer.writerow({'ScrapeDate': date, 'ScrapeTime': scrapeTime, 'Sport': deEmojify(sport), 'Event': deEmojify(event), 'Selection1': deEmojify(selection1), 'Selection2': deEmojify(selection2})
UnboundLocalError: local variable 'event' referenced before assignment
[8588:6676:0713/171910.797:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[4516:10632:0713/185339.730:ERROR:device_event_log_impl.cc(214)] [18:53:39.730] USB: usb_service_win.cc:258 Failed to get device driver name: Element not found. (0x490)

标签: pythonselenium

解决方案


推荐阅读