selenium: WebDriverException: Message: marionette was not a the name of a known capability or a valid extension capability

Ubuntu 14.04 (Travis) Selenium Python bindings 3.4.0 (latest) Mozilla Firefox 53.0 (latest) geckodriver v0.16.1 (latest)

I originally commented on https://github.com/SeleniumHQ/selenium/issues/3890#issuecomment-296695933 because it appeared to be the same issue, but the latest geckodriver release did not address it for me.

The above combination of versions causes every one of our tests to fail on Firefox with WebDriverException: Message: marionette was not a the name of a known capability or a valid extension capability. Please see https://travis-ci.org/EFForg/privacybadger/jobs/226049565 for the full stack trace. Downgrading to Python bindings < 3.4.0 resolves the issue.

Here is the pull request where I run into this problem: https://github.com/EFForg/privacybadger/pull/1343.

Here is the branch where I check to see if it’s fixed in geckodriver v0.16.1 (it is not): https://github.com/EFForg/privacybadger/compare/upgrade-selenium.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Looks like WebExtensions support got merged two days ago: https://github.com/SeleniumHQ/selenium/issues/1181. I’m not sure but I think we’re still waiting on geckodriver (https://github.com/mozilla/geckodriver/issues/211) before we can ditch web-ext since that’s what we use to drive Firefox. Does that sound right, @cowlicks?

Yep, send_keys and move_to seems to work fine after upgrading to the latest geckodriver, but on the other hand, all (Firefox) tests broke, which is what we’re discussing here. My solution at the moment is to downgrade Selenium bindings to 3.3.x, but that’s just a short-term workaround.