Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

selenium-webdriver fails to load from cucumber after upgrade to 2.21.2 #3783

Closed
lukeis opened this issue Mar 3, 2016 · 8 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3783

Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.

What steps will reproduce the problem?
1. update selenium-webdriver gem from 2.20.0 to 2.21.2
2.
3.

What is the expected output? What do you see instead?

cucumber features fail with:

  cannot load such file -- {
    "frozen": {
      "app.update.auto": false,
      "app.update.enabled": false,
      "browser.download.manager.showWhenStarting": false,
      "browser.EULA.override": true,
      "browser.EULA.3.accepted": true,
      "browser.link.open_external": 2,
      "browser.link.open_newwindow": 2,
      "browser.offline": false,
      "browser.safebrowsing.enabled": false,
      "browser.safebrowsing.malware.enabled": false,
      "browser.search.update": false,
      "browser.sessionstore.resume_from_crash": false,
      "browser.shell.checkDefaultBrowser": false,
      "browser.tabs.warnOnClose": false,
      "browser.tabs.warnOnOpen": false,
      "devtools.errorconsole.enabled": true,
      "dom.disable_open_during_load": false,
      "extensions.autoDisableScopes": 10,
      "extensions.logging.enabled": true,
      "extensions.update.enabled": false,
      "extensions.update.notifyUser": false,
      "network.manage-offline-status": false,
      "network.http.phishy-userpass-length": 255,
      "offline-apps.allow_by_default": true,
      "prompts.tab_modal.enabled": false,
      "security.fileuri.origin_policy": 3,
      "security.fileuri.strict_origin_policy": false,
      "security.warn_entering_secure": false,
      "security.warn_entering_secure.show_once": false,
      "security.warn_entering_weak": false,
      "security.warn_entering_weak.show_once": false,
      "security.warn_leaving_secure": false,
      "security.warn_leaving_secure.show_once": false,
      "security.warn_submit_insecure": false,
      "security.warn_viewing_mixed": false,
      "security.warn_viewing_mixed.show_once": false,
      "signon.rememberSignons": false,
      "toolkit.networkmanager.disable": true,
      "toolkit.telemetry.prompted": 2,
      "toolkit.telemetry.enabled": false,
      "toolkit.telemetry.rejected": true
    },
    "mutable": {
      "browser.dom.window.dump.enabled": true,
      "browser.startup.page": 0,
      "browser.startup.homepage": "about:blank",
      "dom.max_script_run_time": 30,
      "dom.report_all_js_exceptions": true,
      "javascript.options.showInConsole": true,
      "network.http.max-connections-per-server": 10,
      "webdriver_accept_untrusted_certs": true,
      "webdriver_assume_untrusted_issuer": true
    }
  }
   (LoadError)


Selenium version: 2.21.2
OS: OS X 10.7
Browser: Firefox
Browser version: 11.0


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by satu.salekari@experq.com on 2012-04-23 13:08:50

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I experience the same problem. Thought I add the backtrace as it is clearly related
to some libraries that are loaded in between, as a test with irb to load the driver
does not produce the error.


      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in
`load'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in
`block in load'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in
`load_dependency'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in
`load'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver.rb:81:in
`json_load'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/profile.rb:30:in
`default_preferences'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/profile.rb:221:in
`update_user_prefs_in'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/profile.rb:79:in
`layout_on_disk'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:57:in
`create_profile'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:34:in
`block in launch'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
`locked'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:32:in
`launch'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/bridge.rb:19:in
`initialize'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/common/driver.rb:31:in
`new'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/common/driver.rb:31:in
`for'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver.rb:63:in
`for'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/capybara-1.1.2/lib/capybara/selenium/driver.rb:15:in
`browser'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/capybara-1.1.2/lib/capybara/selenium/driver.rb:36:in
`visit'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/capybara-1.1.2/lib/capybara/session.rb:157:in
`visit'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/capybara-1.1.2/lib/capybara/dsl.rb:161:in
`visit'
      /Users/thilo/workspace/mbshare/features/step_definitions/session_steps.rb:20:in
`block in <top (required)>'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:48:in
`instance_exec'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:48:in
`block in cucumber_instance_exec'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:69:in
`cucumber_run_with_backtrace_filtering'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:36:in
`cucumber_instance_exec'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_step_definition.rb:62:in
`invoke'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/step_match.rb:25:in
`invoke'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:60:in
`invoke'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_world.rb:30:in
`step'
      /Users/thilo/workspace/mbshare/features/step_definitions/session_steps.rb:7:in
`block in <top (required)>'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:48:in
`instance_exec'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:48:in
`block in cucumber_instance_exec'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:69:in
`cucumber_run_with_backtrace_filtering'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/core_ext/instance_exec.rb:36:in
`cucumber_instance_exec'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_step_definition.rb:62:in
`invoke'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/step_match.rb:25:in
`invoke'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/step_invocation.rb:59:in
`invoke'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/step_invocation.rb:38:in
`accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:99:in
`block in visit_step'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:163:in
`broadcast'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:98:in
`visit_step'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/step_collection.rb:15:in
`block in accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/step_collection.rb:14:in
`each'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/step_collection.rb:14:in
`accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:93:in
`block in visit_steps'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:163:in
`broadcast'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:92:in
`visit_steps'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/scenario.rb:55:in
`block (2 levels) in accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:80:in
`block (2 levels) in with_hooks'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:96:in
`before_and_after'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:79:in
`block in with_hooks'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:120:in
`call'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:120:in
`block (3 levels) in around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/language_support/language_methods.rb:9:in
`block in around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/language_support/language_methods.rb:91:in
`call'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/language_support/language_methods.rb:91:in
`execute_around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/language_support/language_methods.rb:8:in
`around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:119:in
`block (2 levels) in around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:117:in
`call'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:117:in
`around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:91:in
`around'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:78:in
`with_hooks'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/scenario.rb:53:in
`block in accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/scenario.rb:108:in
`with_visitor'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/scenario.rb:47:in
`accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:51:in
`block in visit_feature_element'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:163:in
`broadcast'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:50:in
`visit_feature_element'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/feature.rb:43:in
`block in accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/feature.rb:42:in
`each'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/feature.rb:42:in
`accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:20:in
`block in visit_feature'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:163:in
`broadcast'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:19:in
`visit_feature'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/features.rb:29:in
`block in accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/features.rb:17:in
`each'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/features.rb:17:in
`each'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/features.rb:28:in
`accept'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:14:in
`block in visit_features'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:163:in
`broadcast'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/ast/tree_walker.rb:13:in
`visit_features'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:46:in
`run!'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/cli/main.rb:43:in
`execute!'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/lib/cucumber/cli/main.rb:20:in
`execute'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.1.9/bin/cucumber:14:in
`<top (required)>'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/bin/cucumber:23:in `load'
      /Users/thilo/.rvm/gems/ruby-1.9.3-p194/bin/cucumber:23:in `<main>'


Selenium version: 2.21.2
OS: OS X 10.7
Browser: Firefox
Browser version: 11.0

Reported by thilo@upstre.am on 2012-04-24 13:53:27

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I have this same problem, however I am using Capybara without Cucumber.

Reported by joshua.siler on 2012-04-30 20:49:18

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks for the report. 

I'll need an example Gemfile (+ Gemfile.lock) + script that will reproduce the problem,
as I'm successfully using 2.21.2 with Cucumber (and ActiveSupport 2.3.2 required) myself.

A guess would be that ActiveSupport is doing some magic that makes *any* module respond
to :load, and we then assume you're using a newer version of MultiJson. Does it work
if you upgrade to the latest version of the multi_json gem?




Reported by jari.bakken on 2012-04-30 23:45:44

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Oops, I meant ActiveSupport 3.2.3, not 2.3.2.

Reported by jari.bakken on 2012-04-30 23:46:37

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by jari.bakken on 2012-04-30 23:49:40

  • Labels added: Component-WebDriver, Lang-Ruby

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Nevermind, this is explained in issue 3819.

Reported by jari.bakken on 2012-04-30 23:53:57

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks, using the latest version of multi_json solved this issue for me.

Reported by joshua.siler on 2012-05-01 00:04:36

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:15:17

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant