【发布时间】: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