That is correct. I ran into same issue and got it resolved with same command.
On Apr 7, 4: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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---