c# - 无法初始化 WebDriver Chrome 并且所有测试均失败

标签 c# azure selenium selenium-chromedriver remotewebdriver

我最近将 Chrome 浏览器版本升级到 78,将 Selenium Web 驱动程序版本升级到 3.141.0,将 Selenium Chrome 驱动程序版本升级到 78.0.3904.7000。

当我通过 Azure 管道在远程计算机上运行测试时,由于以下故障,我的所有测试都失败了。请建议如何处理这个问题

OneTimeSetUp: Automation.Test.Framework.Models.Exceptions.AtGenericException : Error initializing WebDriver Chrome ----> System.InvalidOperationException : Driver does not support manipulating HTML5 web storage. Use the HasWebStorage property to test for the driver capability

最佳答案

自 Chrome 75 起,w3c 规范合规性的默认设置已切换为 true。 但是,C# 绑定(bind)仅在设置为 true 时才传递该选项(假设默认值为 false)。 这意味着我们无法使用当前稳定的 C# 绑定(bind)将其设置为 false。

https://github.com/SeleniumHQ/selenium/issues/7521

关于c# - 无法初始化 WebDriver Chrome 并且所有测试均失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58591783/

相关文章:

javascript - 使用 Firebase 进行 Microsoft 单租户身份验证

azure - 用于通过 Azure AD 连接到 Azure SQL 数据库的连接字符串

python - Tkinter 在 Selenium 进程中卡住

javascript - 如何将序列化的多维数组从 C# 传递到 Javascript

c# - 无法将事件记录到应用程序洞察中

c# - 如何在运行时替换 HTML 的占位符值并使用 iTextSharp 生成 PDF?

sql - JSON_VALUE() 在 SQL Azure v12 中停止工作?

c# - 如何在运行时设计报告 SSRS

java - 在 webdriver 中使用 cssSelecter 匹配元素的更严格方法是什么

java - 无法在java中的selenium webdriver中选择下拉列表