I have made my scripts generic so that they can be used either with watir or safariwatir. I have the following requires for my tests:
require 'rubygems' require 'watir-webdriver' require 'safariwatir' require 'watir' require 'spec' require 'firewatir' require 'curb' require 'hpricot' require 'yaml' If I comment out watir-webdriver my tests work fine but apparently having that with safariwatir doesn't work. However when I comment out safariwatir it still doesn't work as it gives and error with commonwatir which is not required. I am trying to make the code generic for all browsers by doing the following: def start_browser if WHICH_BROWSER == 'safari' then Watir::Browser.default = WHICH_BROWSER @browser = Watir::Browser.new else @browser = Watir::Browser.new(:WHICH_BROWSER) end end Would love to get this working. And ideas? If not then I will wait for the jssh version for 3.6. Thanks On Jan 29, 5:03 am, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > On Fri, Jan 29, 2010 at 12:10 AM, QAguy <qablogm...@gmail.com> wrote: > > gem install watir-webdriver --pre > > /opt/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.7/lib/watir/ > > If you provide your script I could help more, but looks like you are using > safariwatir and not watir-webdriver. More info: > > http://wiki.github.com/jarib/watir-webdriver/getting-startedhttp://zeljkofilipin.com/2010/01/12/watir-on-webdriver/ > > Željko -- 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