我有一些使用 Geckodriver 在 Firefox 中运行测试的测试。今天,我的开发机器上的 Firefox 更新到了 50 版。我看到了这个错误:
System.NotImplementedException : GET /session/ffffffff-ffff-ffff-ffff-ffffffffffff/element//attribute/ did not match a known command
我更新到geckodriver-v0.11.1-win64
和selenium-dotnet-strongnamed-3.0.0
(对于 .NET 4.0),认为 Selenium 和 GeckoDriver 可能只需要与最新版本的 Firefox 同步。
现在,当我运行这个测试时,我看到了两件事:
- Firefox 在断点处崩溃(...?)
A breakpoint has been reached. (0x80000003) occurred in the application at location 0x6fa3ed40.
LightIntegration.Browser.QUnit.Firefox: OpenQA.Selenium.WebDriverException : Cannot find a file named '...\bin\Debug\getAttribute.js' or an embedded resource with the id 'getAttribute.js'.
我查了一下,果然没有那个名字的文件。从来没有过。我应该在某个地方下载这个文件吗?
(值得一提的是,在 Chrome 中运行时,同样的测试也通过了。)