"safebrowsing" 标志不再适用于 selenium 中最新的 chromedriver 版本 93.0.4577.1500
"safebrowsing" flag doesn't work anymore with latest chromedriver version 93.0.4577.1500 in selenium
我一直在使用 C# 将 chrome 驱动程序与 selenium 一起使用,我曾经添加 "options.AddUserProfilePreference("safebrowsing", "enabled");" 到 options 对象,一切都很完美(差不多一年了)直到几天前 chrome 浏览器有一个更新版本 93.0.4577.63 所以我不得不更新chrome 驱动程序版本 93.0.4577.1500,当我尝试 运行 脚本时,出现此错误:
OpenQA.Selenium.WebDriverException:未知错误:Chrome 无法启动:崩溃。
(未知错误:DevToolsActivePort 文件不存在)
注意:删除选项后错误消失:options.AddUserProfilePreference("safebrowsing", "enabled");
此致,
不知道为什么,但是当我将 AddUserProfilePreference
方法参数更改为这样 options.AddUserProfilePreference("safebrowsing.enabled", "true");
.
时它起作用了
我一直在使用 C# 将 chrome 驱动程序与 selenium 一起使用,我曾经添加 "options.AddUserProfilePreference("safebrowsing", "enabled");" 到 options 对象,一切都很完美(差不多一年了)直到几天前 chrome 浏览器有一个更新版本 93.0.4577.63 所以我不得不更新chrome 驱动程序版本 93.0.4577.1500,当我尝试 运行 脚本时,出现此错误:
OpenQA.Selenium.WebDriverException:未知错误:Chrome 无法启动:崩溃。 (未知错误:DevToolsActivePort 文件不存在)
注意:删除选项后错误消失:options.AddUserProfilePreference("safebrowsing", "enabled");
此致,
不知道为什么,但是当我将 AddUserProfilePreference
方法参数更改为这样 options.AddUserProfilePreference("safebrowsing.enabled", "true");
.