watir 1.6.2 installation problem

5 views
Skip to first unread message

kiran

unread,
Apr 4, 2009, 1:44:36 PM4/4/09
to Watir General
Hi,
i have installed watir 1.6.2 and executed the following lines.

require 'rubygems'
require 'watir'
include Watir
ie=IE.new

But i am getting the folling error
>ruby sa.rb
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
core_ext/module/introspection.rb:70:in `const_get': no such file to
load -- safariwatir (MissingSourceFile)
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/introspection.rb:70:in
`local_constants'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/introspection.rb:70:in `each'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/introspection.rb:70:in
`local_constants'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/introspection.rb:68:in `each'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/introspection.rb:68:in
`local_constants'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/introspection.rb:86:in
`local_constant_names'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:498:in `new_constants_in'
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:495:in `collect'
... 6 levels...
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 C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82
from sa.rb:16
>Exit code: 1

Bret Pettichord

unread,
Apr 4, 2009, 1:48:50 PM4/4/09
to watir-...@googlegroups.com
Don't "include Watir"
Instead "ie=Watir::IE.new"
--
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training

kiran

unread,
Apr 4, 2009, 2:11:36 PM4/4/09
to Watir General
Thank you bret......its working....how to use for for firefox
> Watir Training: Portland/Beaverton April 16-17www.watircraft.com/training- Hide quoted text -
>
> - Show quoted text -

Chuck van der Linden

unread,
Apr 6, 2009, 5:25:06 PM4/6/09
to Watir General
On Apr 4, 11:11 am, kiran <gki...@gmail.com> wrote:
> Thank you bret......its working....how to use for for firefox
>

http://wiki.openqa.org/display/WTR/Browser.new
Reply all
Reply to author
Forward
0 new messages