Selenium Web 驱动程序:DevTools 请求失败 - 尝试打开 chrome 驱动程序时



当我尝试通过硒网络驱动程序打开chrome浏览器时,有时它没有打开,并且我收到以下错误日志。 它不是一直随机发生的,我使用了最新版本的硒网络驱动程序和适用于最新硒版本的铬驱动程序。

[0.685][INFO]: Launching chrome: "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --load-component-extension="C:UsersT002812AppDataLocalTempscoped_dir8344_11442internal" --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12855 --safebrowsing-disable-auto-update --test-type=webdriver --use-mock-keychain --user-data-dir="C:UsersT002812AppDataLocalTempscoped_dir8344_1252" data:,
[0.733][DEBUG]: DevTools request: http://localhost:12855/json/version
[2.839][DEBUG]: DevTools request failed
[2.889][DEBUG]: DevTools request: http://localhost:12855/json/version
[3.031][DEBUG]: DevTools request failed
[3.081][DEBUG]: DevTools request: http://localhost:12855/json/version
[4.894][DEBUG]: DevTools request failed
[4.944][DEBUG]: DevTools request: http://localhost:12855/json/version
[5.084][DEBUG]: DevTools request failed
[5.134][DEBUG]: DevTools request: http://localhost:12855/json/version
[6.952][DEBUG]: DevTools request failed
[7.002][DEBUG]: DevTools request: http://localhost:12855/json/version
[7.143][DEBUG]: DevTools request failed
[7.193][DEBUG]: DevTools request: http://localhost:12855/json/version
[9.007][DEBUG]: DevTools request failed
[9.057][DEBUG]: DevTools request: http://localhost:12855/json/version
[9.199][DEBUG]: DevTools request failed
[9.249][DEBUG]: DevTools request: http://localhost:12855/json/version
[11.062][DEBUG]: DevTools request failed
[11.113][DEBUG]: DevTools request: http://localhost:12855/json/version
[11.254][DEBUG]: DevTools request failed
[11.305][DEBUG]: DevTools request: http://localhost:12855/json/version
[13.116][DEBUG]: DevTools request failed
[13.167][DEBUG]: DevTools request: http://localhost:12855/json/version
[13.308][DEBUG]: DevTools request failed
[13.359][DEBUG]: DevTools request: http://localhost:12855/json/version
[15.167][DEBUG]: DevTools request failed
[15.218][DEBUG]: DevTools request: http://localhost:12855/json/version
[15.359][DEBUG]: DevTools request failed
[15.410][DEBUG]: DevTools request: http://localhost:12855/json/version
[17.214][DEBUG]: DevTools request failed
[17.264][DEBUG]: DevTools request: http://localhost:12855/json/version
[17.413][DEBUG]: DevTools request failed
[17.464][DEBUG]: DevTools request: http://localhost:12855/json/version
[19.268][DEBUG]: DevTools request failed
[62.397][INFO]: RESPONSE InitSession chrome not reachable
[62.397][DEBUG]: Log type 'driver' lost 0 entries on destruction
[62.397][DEBUG]: Log type 'browser' lost 0 entries on destruction

原因可能是通过代理保护 Chrome 隐私。 要禁用它,请参阅:https://www.expressvpn.com/support/troubleshooting/google-chrome-no-proxy/

相关内容

  • 没有找到相关文章

最新更新