【问题标题】:"safebrowsing" flag doesn't work anymore with latest chromedriver version 93.0.4577.1500 in selenium“safebrowsing”标志不再适用于 selenium 中最新的 chromedriver 版本 93.0.4577.1500
【发布时间】:2021-11-05 10:05:06
【问题描述】:

我一直在使用 C# 使用带有 selenium 的 chromedriver,我曾经将 "options.AddUserProfilePreference("safebrowsing", "enabled");" 添加到选项对象中,一切都很完美(因为几乎一年了)直到几天前 chrome 浏览器有一个更新版本 93.0.4577.63 所以我不得不将 chrome 驱动程序更新到版本 93.0.4577.1500,当我试图运行脚本,我得到了这个错误:

OpenQA.Selenium.WebDriverException:未知错误:Chrome 无法启动:崩溃。 (未知错误:DevToolsActivePort 文件不存在)

注意:当我删除选项时错误消失:options.AddUserProfilePreference("safebrowsing", "enabled");

问候,

【问题讨论】:

    标签: c# selenium selenium-chromedriver


    【解决方案1】:

    不知道为什么,但是当我将 AddUserProfilePreference 方法参数更改为这样的 options.AddUserProfilePreference("safebrowsing.enabled", "true"); 时它起作用了。

    【讨论】:

    • 请在您的回答中提供更多详细信息。正如目前所写的那样,很难理解您的解决方案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-29
    • 1970-01-01
    相关资源
    最近更新 更多