selenium: [3.12.0] JavaScript Error: "b is null"

OS:
Linux Selenium Version:
3.12.0 Browser:
Firefox 47.0.1

The following error started happening in a bunch of tests since 3.12.0. Only on FF 47.0.1, on Chrome it doesn’t happen. We’re using Capybara 3.0.3 on JRuby.

[JavaScript Error: "b is null" {file: "file:///home/boris/project/features/build/webdriver-profile20180510-2668-9f3blf/extensions/fxdriver@googlecode.com/components/synthetic-mouse.js" line: 10294}]'[JavaScript Error: "b is null" {file: "file:///home/boris/project/features/build/webdriver-profile20180510-2668-9f3blf/extensions/fxdriver@googlecode.com/components/synthetic-mouse.js" line: 10294}]' when calling method: [wdIMouse::move]
      # [remote server] file:///home/boris/project/features/build/webdriver-profile20180510-2668-9f3blf/extensions/fxdriver@googlecode.com/components/command-processor.js:13148:in `WebElement.clickElement'
      # [remote server] file:///home/boris/project/features/build/webdriver-profile20180510-2668-9f3blf/extensions/fxdriver@googlecode.com/components/command-processor.js:13388:in `DelayedCommand.prototype.executeInternal_/k'
      # [remote server] file:///home/boris/project/features/build/webdriver-profile20180510-2668-9f3blf/extensions/fxdriver@googlecode.com/components/command-processor.js:13393:in `DelayedCommand.prototype.executeInternal_'
      # [remote server] file:///home/boris/project/features/build/webdriver-profile20180510-2668-9f3blf/extensions/fxdriver@googlecode.com/components/command-processor.js:13335:in `DelayedCommand.prototype.execute/<'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/response.rb:69:in `assert_ok'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/response.rb:32:in `initialize'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/http/common.rb:84:in `create_response'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/http/default.rb:104:in `request'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/http/common.rb:62:in `call'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/bridge.rb:164:in `execute'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/oss/bridge.rb:579:in `execute'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/oss/bridge.rb:326:in `click_element'
      # ./features/build/tmp/jrubyExec/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/common/element.rb:72:in `click'
      # ./features/build/tmp/jrubyExec/gems/capybara-3.0.3/lib/capybara/selenium/node.rb:94:in `click'
      # ./features/build/tmp/jrubyExec/gems/capybara-3.0.3/lib/capybara/node/element.rb:133:in `block in click'
      # ./features/build/tmp/jrubyExec/gems/capybara-3.0.3/lib/capybara/node/base.rb:83:in `synchronize'
      # ./features/build/tmp/jrubyExec/gems/capybara-3.0.3/lib/capybara/node/element.rb:133:in `click'
      # ./features/support/capybara_helper.rb:3:in `click_text'
      # ./features/login_spec.rb:169:in `block in (root)'

Please tell me if you need more information!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 24 (11 by maintainers)

Commits related to this issue

Most upvoted comments

It’s a blind shot, but I hope this change fixes the issue. To be released in version 3.13

No, I don’t have time to figure it out.

@luke-hill This is reference to my own code, not yours. Mine is a proprietary Enterprise Web Application which obviously does not sit on any public repo and for same reasons, it’s very difficult for me to get something that is stand alone reproducible for you. I’m going to say again that I’m not demanding a fix but just letting you know that someone else has seen the issue, and now I’m going to politely bow out of this conversation unless I have anything further to add.

Additional info if it helps; OS: Mac OSX 10.13.4 Selenium: 3.12.0 Browser: FF 52.5.2

OS: Windows 7 Selenium: 3.12.0 Browser: FF 52.2.0

I am observing the same error when calling Select.selectByVisibleText:

org.openqa.selenium.WebDriverException: [JavaScript Error: "b is null" {file: "file:///C:/anonymous4342491499718304582webdriver-profile/extensions/fxdriver@googlecode.com/components/synthetic-mouse.js" line: 10294}]'[JavaScript Error: "b is null" {file: "file:///C:/anonymous4342491499718304582webdriver-profile/extensions/fxdriver@googlecode.com/components/synthetic-mouse.js" line: 10294}]' when calling method: [wdIMouse::move] Command duration or timeout: 0 milliseconds at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166) at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40) at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80) at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:276) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:83) at org.openqa.selenium.support.ui.Select.setSelected(Select.java:324) at org.openqa.selenium.support.ui.Select.selectByVisibleText(Select.java:120) ...

I observed it happens on the second selection of a dropdown value.

Tested exactly the same thing with 3.11.0 and worked fine. It is definitely an issue with 3.12.0.

Yes Yes “Bump”

No, I don’t have time to figure it out. It would probably take me a day to provide a reproducible scenario if at all and so I’m just going to try and work around it, but felt it worth letting you know that someone out there is experiencing the same issue. If I change my mind I’ll be sure to pop back.