Someone else will probably jump in here but I think it's probably the requires in your snippet:
require 'firewatir' require 'test/unit' I'm working on porting our tests and making them work cross-platform and think I ran into the same thing when I was first playing around with the new stuff. This is how I'm doing it now (no direct require of firefox or watir): require 'watir/browser' Watir::Browser.default = 'firefox' b = Watir::Browser.new I'm not using a yml file. You may want to move that out of the way when trying this. --- On Thu, 11/20/08, Natasha Ranney <[EMAIL PROTECTED]> wrote: > From: Natasha Ranney <[EMAIL PROTECTED]> > Subject: [wtr-general] Re: Executing watir 1.6.2 scripts on MAC > To: watir-general@googlegroups.com > Date: Thursday, November 20, 2008, 1:37 PM > Hi Scott, > > I have tried out your suggestion, but am getting the > same issue. Somehow its not able to locate/Load the > firewatir gem or maybe its not installed correctly. > Though I don't remember seeing any error while > installing it. > > Following is the snippet of my code: > -------------------------------- > require 'firewatir' > require 'test/unit' > > Watir.options_file = 'options.yml' > > $ie = Watir::Browser.new > > Watir::Browser.default = 'firefox' > > class OrderTest < Test::Unit::TestCase > > end > -------------------------------- > > Have also set browser type in my options.yml file: > > browser: firefox > > -------------------------------- > > Currently following gems are installed on my machine: > > firewatir(1.6.2) > commonwatir (1.6.2) > safariwatir (0.3.3) > > Thanks, > Natasha > > > --- sbourdea <[EMAIL PROTECTED]> wrote: > > > > > Natasha, > > > > I had this problem on Mac and if you add: > > > > Watir::Browser.default = 'firefox' > > > > up on top of your script it should work. For good > > measure, I have > > browser set to 'firefox' in my watir options > file, > > as well. > > > > Scott > > > > On Nov 19, 1:20 pm, Natasha > <[EMAIL PROTECTED]> > > wrote: > > > Hi All, > > > > > > I having trouble executing my scripts on MAC. > They > > work well on > > > Windows OS. > > > > > > I have installed firewatir and safariwatir on > MAC. > > > > > > 1. Its giving me an error for the following > > statement: > > > require 'firewatir' > > > > > > Error: > > > 'require': no such file to load -- > > firewatir(LoadError) > > > > > > 2. Also can I execute the script on safari? If > > yes, what should the > > > browser.default setting? > > > > > > Thanks, > > > Natasha > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---