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