this is a problem with a gem that watir installs. search the mailing list
for Windows::API and you should find the solution

Paul

On Tue, Apr 14, 2009 at 10:04 AM, Samar Javid <sfja...@gmail.com> wrote:

>
> Hi,
> I'm a newbee at Watir. I've installed ruby and watir and am trying the
> quickstart tutorials. However, I can't get to open internet explorer.
> I get following error message:
>
> C:\>irb
> irb(main):001:0> require "watir"
> => true
> irb(main):002:0> ie=Watir::IE.new
> NameError: uninitialized constant Windows::API::Error
>        from C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/
> windows/thread.rb:59
>        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/win32-process-0.5.9/lib/
> win32/process.rb:3
>        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-
> process.rb:1
>        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:45
>        from (irb):2
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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