Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox 47 with selenium marionette driver fails #228

Open
hugocorbucci opened this issue Jun 22, 2016 · 0 comments
Open

Firefox 47 with selenium marionette driver fails #228

hugocorbucci opened this issue Jun 22, 2016 · 0 comments

Comments

@hugocorbucci
Copy link
Contributor

Firefox 47 is only compatible with the marionette webdriver (https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver).
Selenium needs to be configured to use such driver. Mainly it is:

  1. Download the geckodriver from https://github.com/mozilla/geckodriver/releases. Extract it and rename it to wires. chmod +x wires. Put it on your path.
  2. Change your Konacha configuration to be something like:
Konacha.configure do |config|
  Capybara.register_driver :selenium_marionette do |app|
    Capybara::Selenium::Driver.new(app, browser: :firefox, marionette: true)
  end
  config.driver = :selenium_marionette
end if defined?(Konacha)
  1. Run

Upon running, however, even though the test, in the browser runs correctly, I now get, from the command line:
ERROR - Error communicating with browser process: TypeError: window.top.Konacha is undefined

Somehow, the context in which the session scripts execute is not the same as the ones where the JS files are loaded so a console.log(window.top.Konacha); in the runner.js and in the runner.rb yield different results. The former is correct. The latter is undefined.

hugocorbucci pushed a commit to espaco-guerra/web that referenced this issue Jun 22, 2016
Due to a problem with Firefox 47, Konacha tests don't report correctly
to the command line. Issue is
jfirebaugh/konacha#228.
While it is not fixed, using chromedriver. To use firefox 47, simply use
the selenium_marionette driver for Konacha in the initializer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant