OpenQA.Selenium.WebDriverException : Cannot find a file named '...\bin\Debug\getAttribute.js' or an embedded resource with the id 'getAttribute.js'

0

I have some tests that use Geckodriver to run a test in Firefox. Today, Firefox updated to version 50 on my development machine. I saw this error:

System.NotImplementedException : GET /session/ffffffff-ffff-ffff-ffff-ffffffffffff/element//attribute/ did not match a known command

I updated to geckodriver-v0.11.1-win64 and selenium-dotnet-strongnamed-3.0.0 (for .NET 4.0), thinking maybe Selenium and GeckoDriver just needed to sync up with the latest version of Firefox.

Now, when I run this test, I see two things:

  1. Firefox crashes with a breakpoint (...?) 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'.

I checked, and sure enough, there's no file with that name. There never has been. Was I supposed to download this file somewhere?

(For what it's worth, the same test passes when run in Chrome.)

.net
selenium
firefox
geckodriver
asked on Stack Overflow Nov 18, 2016 by Jacob Krall

1 Answer

1

As @FlorentB. suggested, my version of Selenium is missing that exact file as a resource.

On the left is selenium-dotnet-strongnamed-3.0.0.zip, which I need to use because we strong name our application.

On the right is selenium-dotnet-3.0.0.zip

A comparison of the resources in the two files For some reason, getAttribute.js and isDisplayed.js are not included in the resources of the strong-named WebDriver (3.0.0.0) assembly.

answered on Stack Overflow Nov 18, 2016 by Jacob Krall

User contributions licensed under CC BY-SA 3.0