Check the version of win32-api that is installed. The error message is indicating that: Could not find win32-api (>= 1.3.0)
>From a Windows command window type: gem list Does the list include a version greater than 1.3.0? If it isn't listed, install the current gem gem install win32-api I believe the current version of win32-api is: 1.4.8 On Aug 19, 12:40 pm, solyanka <lanafro...@gmail.com> wrote: > I installed Ruby 1.8.7 and Watir 2.0 , then tried to run my testcase > and it failed giving error: > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in > `to_specs': Could not find win32-api (>= 1.3.0) amongst > [activesupport-2.3.2, builder-2.1.2, commonwatir-2.0.1, > commonwatir-1.6.5, commonwatir-1.6.2, ffi-1.0.9-x86-mingw32, > firewatir-1.6.5, firewatir-1.6.2, fxri-0.3.6, fxruby-1.6.16-x86- > mswin32-60, hoe-1.12.2, hpricot-0.6.164-x86-mswin32, json_pure-1.2.0, > log4r-1.0.5, nokogiri-1.4.0-x86-mswin32, ptools-1.1.6, rake-0.8.7, > rake-0.8.1, rautomation-0.6.3, require_all-1.1.0, ruby-opengl-0.60.0- > x86-mswin32, rubyforge-2.0.3, rubyforge-1.0.3, rubygems-update-1.8.8, > rubygems-update-1.3.5, rubygems-update-1.3.4, s4t-utils-1.0.4, test- > unit-2.0.1, user-choices-1.1.6, watir-2.0.1, watir-1.6.5, watir-1.6.2, > win32-api-1.4.5-x86-mswin32-60, win32-api-1.4.2-x86-mswin32-60, win32- > api-1.2.1-x86-mswin32-60, win32-api-1.2.0-x86-mswin32-60, win32- > clipboard-0.4.4, win32-dir-0.3.2, win32-eventlog-0.5.0, win32- > file-0.5.5, win32-file-stat-1.3.1, win32-process-0.5.9, win32- > sapi-0.1.4, win32-sound-0.4.1, windows-api-0.3.0, windows-api-0.2.4, > windows-pr-1.2.0, windows-pr-1.0.5, xml-simple-1.0.12] > (Gem::LoadError) > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1932:in > `traverse' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1931:in > `each' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1931:in > `traverse' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1934:in > `traverse' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1932:in > `each' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1932:in > `traverse' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1931:in > `each' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1931:in > `traverse' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:465:in > `find_in_unresolved_tree' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:463:in > `reverse_each' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:463:in > `find_in_unresolved_tree' > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:47:in > `require' > from C:/WATIR2/API/DEVICES/RECIVA/cases.rb:2 > > cases.rb: > require 'watir' > require 'test/unit' > require 'watir/testcase' > require 'test/unit/testsuite' > require 'test/unit/ui/console/testrunner' > require "dbi" > require "win32ole" > require 'C:/WATIR2/Cookies' > require 'C:/WATIR2/conf' > require 'require_all' > require_all 'C:/WATIR2/API/DEVICES/LIB/*.rb' > require 'watir/contrib/Xls' > > Please help, > Thank You, > Lana -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com