require 'thread'
require 'watir'
require 'watir/ie' # needed for release 1.6.x
def test_google
ie = Watir::IE.start('http://www.google.com')
ie.text_field(:name, "q").set("pickaxe")
ie.button(:name, "btnG").click
ie.close
end
# run the same test three times concurrently in separate browsers
threads = []
3.times do
threads << Thread.new {test_google}
end
threads.each {|x| x.join}