【发布时间】:2020-02-21 16:44:05
【问题描述】:
我正在通过 Azure 每日计划运行在远程计算机上运行测试。一些测试失败,错误日志如下。我该如何解决这个问题?
注意:我没有启动 chrome 驱动程序的方法实现,因为我正在引用具有抽象方法的其他解决方案的 dll。
堆栈:NUnit、C#、Selenium、Visual Studio、Azure、log4Net
一次性设置: Automation.Test.Framework.Models.Exceptions.AtGenericException:错误 初始化 WebDriver Chrome ----> System.InvalidOperationException : 未知错误: Runtime.evaluate throw exception: DOMException: Failed to read “Window”中的“localStorage”属性:拒绝访问 文档。在:1:1(会话信息:chrome=77.0.3865.90) (驱动信息:chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),平台=Windows NT 6.3.9600 x86_64)
【问题讨论】:
-
你能分享失败的脚本代码吗?每次运行都失败相同的测试吗?
标签: c# selenium google-chrome selenium-chromedriver azure-automation