Try adding

require 'rubygems'

at the very top of your script, before the Firewatir requirement.

Regards,

John

On Sep 23, 10:19 pm, Brad <bradask...@gmail.com> wrote:
> I installed FireWatir on the Mac.  I got the mozilla_all_tests.rb to
> run when I was in the unittests directory.  I can get the IRB to start
> a new browser and go to a URL, but I can not get a .rb file to run
> from my desktop
>
> When I do this in the console it works:
> require 'firewatir'
> ff = Watir::Browser.new
> ff.goto "http://www.google.com";
>
> If I have the same thing in a file on my desktop and run:
> ruby 'ff.rb'
> which contains:
>  # include the controller
>     require 'firewatir'
>
>  # go to the page you want to test
>    ff = Watir::Brower.new
>    ff.goto "http://www.google.com";
>
> I get an error message.
> ff.rb:2:in `require': no such file to load -- firewatir (LoadError)
>         from ff.rb:2
>
> Why is that?
>
> Thank you.
>
> Brad
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to