How can I get watir-webdriver and safariwatir to work together?

Good morning,

I am configuring watirgrid and I was partially successful, however I am having problems getting all providers to work with my ruby ​​script.

On my Mac, I installed the provider from the command line using:

provider -d safariwatir -c druby://192.168.0.1:11235

and then on my Ubuntu machine, I configure another provider in this way

provider -d webdriver -c druby://192.168.0.1:11235

Now, if I use the following ruby ​​code:

require 'rubgygems'
require 'watirgrid'

Watir::Grid.control(:controller_uri => 'druby://192.168.0.1:11235', :browser_type => 'firefox'_ do |browser, id|
    puts "Browser id is #{i}"
    browser.goto("http://www.google.co.uk")
    puts browser.title
end

, . "firefox" , (IE Windows, FF Mac ..). "firefox" Grid.control, "Safari" , , , , .

(, , . , ).

webdriver -b:

provider -d webdrive -c druby://192.168.0.1:11235 -b firefox

ruby, , .

- ?

, , .

, Chrome webdriver , , -, , . , .

,

+5
2

, ( )

gem install watirgrid --pre

rspec: https://github.com/90kts/watirgrid/blob/master/spec/grid_mixed_spec.rb

, , -p unqiue. , -b browser_type, , Watir:: Grid.

, ...

+2

All Articles