On Tue, Jan 5, 2010 at 3:21 PM, tester86 <sagar.am...@gmail.com> wrote: > My question is would I have to write two sets of code > one for ie and one for ff in order to run my script against both > browsers.
I am not sure what you mean by this. Would this work for you? ie = Watir::IE.new ie.goto "google.com" ff = FireWatir::Firefox.new ff.goto "google.com" ie.goto "yahoo.com" ff.goto "yahoo.com Or would you like to do something like this (not tested)? [Watir::IE.new, FireWatir::Firefox.new].each do |browser| browser.goto "google.com" browser.goto "yahoo.com" end The above code will go to google and yahoo first in IE, and then in FF. Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general