this is the solution

perform
gem install win32-api --platform x86-mswin32-60

and then

gem install windows-pr

performing the above steps worked for me


On Apr 9, 3:07 am, marekj <marekj....@gmail.com> wrote:
> Had the same issue on Windows XP test machine here when upgrading
> framework to use watir 1.6.2 and Ruby 1.8.6-26
> We had windows-pr-0.9.6.gem installed with watir 1.6.2
>
> I upgraded to following gems and it's fine
> windows-pr-1.0.2
> windows-api-0.3.0.gem
> win32-api-1.4.0-x86-mswin32-60.gem
>
> fyi: We maintain a private cache of gems here so I can prepackage
> installation on our test machines here with rake tasks
>
> On Apr 7, 3:13 am, "frank.li" <lizhiguoem...@gmail.com> wrote:
>
> > This issue is windows-pr version
> > resolution:
> > Gem uninstall windows-pr
> > Gem install windows-pr
>
> > answer from  http://www.zhuaijun.cn/archives/53
>
> > On 3月30日, 下午11时22分, "Dennis I." <ideler.den...@gmail.com> wrote:
>
> > > I tried installing Watir at home a while ago and kept getting an
> > > error. I followed some instructions here from a different discussion
> > > that mentioned installing and reinstalling some gems.
> > > That didn't work. And today I tried again. Here is the error that I
> > > get.
>
> > > >ruby test.rb
>
> > > C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/thread.rb:
> > > 59: uninitialized constant Windows::API::Error (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 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 test.rb:22
> > > Test executed on Mon Mar 30 12:14:05 -0300 2009
>
> > > Here is the code until where it gets stuck:
>
> > > require 'watir'
>
> > > time = Time.now.to_s
> > > puts "Test executed on "+time
>
> > > test_site = "http://www.google.com";
>
> > > ie = Watir::IE.open(test_site) # this is line 22

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