ruby - Need to implement Watirgrid, -


i want implement watirgrid, i'm not able that, every time i'm getting errors related controller , provider starting process, example on internet, none of them working.

could 1 please me implement this, full running example steps great help.

i'm trying code:

require 'rubygems' require 'watirgrid' require 'watir' require 'watir-webdriver'  # setup controller on port 12351 new grid controller = controller.new(:ring_server_port => 12351, :loglevel => logger::error) controller.start  # add provider grid # :browser_type => 'webdriver' if using webdriver or # :browser_type => 'ie' if using watir... provider = provider.new(:controller_uri => 'druby://127.0.0.1:11235',                         :ring_server_port => 12351,                         :loglevel => logger::error,                          :browser_type => 'webdriver') provider.start  # connect grid , take providers (this time one) grid = watir::grid.new(:ring_server_port => 12351, :ring_server_host => '127.0.0.1') grid.start(:take_all => true)  # each provider on grid, launch new thread start multiple browsers threads = [] grid.browsers.each |browser|   threads << thread.new     p browser[:hostname]     p browser[:architecture]     p browser[:browser_type]      # in case starting new ie browser     b = browser[:object].new_browser(:ie)     b.goto("http://www.google.com")     b.text_field(:name, 'q').set("watirgrid")     b.button(:name, "btni").click   end end threads.each {|thread| thread.join} 

and errors i'm getting is

drb::drbconnerror: druby://127.0.0.1:11235 - #<errno::econnrefused: no connection   made because target machine actively refused it. - connect(2)>   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:736:in `rescue in block in open'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:730:in `block in open'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:729:in `each'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:729:in `open'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:1191:in `initialize'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:1171:in `new'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:1171:in `open'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:1087:in `block in method_missing'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:1105:in `with_friend'   c:/ruby192/lib/ruby/1.9.1/drb/drb.rb:1086:in `method_missing'   c:/ruby192/lib/ruby/gems/1.9.1/gems/watirgrid-1.1.5/lib/provider.rb:141:in `start'   (irb):44   c:/ruby192/bin/irb:12:in `<main>' irb(main):045:0> 

i got same problem, got provider started changing

controller_uri 

to

controller_uri => 'druby://machineipaddress:11235' 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -