0

我有一些使用 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-win64selenium-dotnet-strongnamed-3.0.0(对于 .NET 4.0),认为 Selenium 和 GeckoDriver 可能只需要与最新版本的 Firefox 同步。

现在,当我运行这个测试时,我看到了两件事:

  1. Firefox 在断点处崩溃(...?)A breakpoint has been reached. (0x80000003) occurred in the application at location 0x6fa3ed40.
  2. 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 中运行时,同样的测试也通过了。)

4

1 回答 1

1

作为@FlorentB。建议,我的 Selenium 版本缺少作为资源的确切文件。

左边是selenium-dotnet-strongnamed-3.0.0.zip,我需要使用它,因为我们为我们的应用程序命名

右边是selenium-dotnet-3.0.0.zip

比较两个文件中的资源 由于某种原因,getAttribute.jsisDisplayed.js没有包含在强名称WebDriver (3.0.0.0)程序集的资源中。

于 2016-11-18T23:52:41.913 回答