Warning in ruby

require ‘rubygems’
require ‘watir-webdriver’
br=Watir::Browser.new

if you run the above program you get warning:

[WARNING] MultiJson is using the default adapter (ok_json). We recommend
loading a different JSON library to improve performance.
=> #<Watir::Browser:0x7f0eb1bcae00 url=“about:blank” title="">

why and how can I fix it, I would also like to know how can I suppress
it? many other pages suggests using -W, but I am unable to do it.

Am 22.10.2012 23:19, schrieb ajay paswan:

require ‘rubygems’

Are you using Ruby 1.9? If so, you can omit this line.

require ‘watir-webdriver’
br=Watir::Browser.new

if you run the above program you get warning:

[WARNING] MultiJson is using the default adapter (ok_json). We recommend
loading a different JSON library to improve performance.
=> #<Watir::Browser:0x7f0eb1bcae00 url=“about:blank” title=“”>

why and how can I fix it […]

A search for the warning gives:
https://groups.google.com/forum/?fromgroups=#!topic/selenium-users/6Y7wJOdBG7o

[…] I would also like to know how can I suppress
it? many other pages suggests using -W, but I am unable to do it.

???

use `-W0’

No, am using 1.8.7