Hi,

I'm looking for a way to use a single ruby script to execute all of my
test script within three browsers (chrome/ff/ie).  One script, say
main.rb, has the following code:

def launch_browser (browser)
if browser == :chrome
@b = Watir::Browser.new :chrome, :switches = > ["==ignore-certificate-
errors"]
else
@b = Watir::Browser.new browser
end
end

All other scripts require this script.  test.rb has the following
code:

launch_browser (:chrome) #or :ie, :ff

A final script that executes my entire collection, run_all.rb,
contains the following code:

require "test.rb"
require "test2.rb"
require "test3.rb"
etc

My goal is to be able to pass the browser variable using run_all.rb so
i can execute all test scripts on all three browsers.  I know this is
possible, just need to be pointed in the right direction.

Thanks

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to