You'll want to use one of these methods:
http://wiki.openqa.org/display/WTR/Browser.new

<http://wiki.openqa.org/display/WTR/Browser.new>here are a few examples:

http://watir.com/examples/


-c

On Wed, Apr 21, 2010 at 3:24 AM, Betsy <[email protected]> wrote:

> We recently upgraded from 1.6.2 version for watir/firewatir to 1.6.5
> version.
>
> require 'firewatir'
> ff = FireWatir::Firefox.new
> ff.goto('www.google.com')
> ff.text_field(:name,'q').set('name')
>
> The above code got executed once successfully but ever since it has
> been throwing up the below error:-
>
> >ruby testff.rb
> ./firewatir.rb:3: uninitialized constant FireWatir (NameError)
>        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>        from testff.rb:2
> >Exit code: 1
>
> Can't seem to get to the reason.
>
> Thanks in advance,
> Betsy Joy.
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]

Reply via email to