Just as a quick FYI, win32screenshot gem only works with ffi gem 1.0.9. If you have 1.0.11 you will get this error:
c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original _require' c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' c:/Ruby187/lib/ruby/gems/1.8/gems/ffi-1.0.11-x86-mingw32/lib/ffi.rb:11 c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original _require' c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' c:/Ruby187/lib/ruby/gems/1.8/gems/win32screenshot-1.0.6/lib/win32/ screenshot.rb: 1 c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `gem_original _require' c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `require' C:/ai/singlerun/features/step_definition/definition.rb:4 c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ rb_support/ rb_language.rb:129:in `load' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ rb_support/ rb_language.rb:129:in `load_code_file' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ runtime/sup port_code.rb:171:in `load_file' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ runtime/sup port_code.rb:83:in `load_files!' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ runtime/sup port_code.rb:82:in `each' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ runtime/sup port_code.rb:82:in `load_files!' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ runtime.rb: 175:in `load_step_definitions' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ runtime.rb: 40:in `run!' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ cli/main.rb :43:in `execute!' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/../lib/cucumber/ cli/main.rb :20:in `execute' c:/Ruby187/lib/ruby/gems/1.8/gems/cucumber-1.1.9/bin/cucumber:14 c:/Ruby187/bin/cucumber:19:in `load' c:/Ruby187/bin/cucumber:19 c:/Ruby187/lib/ruby/1.8/fileutils.rb:1207:in `stat': No such file or directory - output.html (Errno::ENOENT) from c:/Ruby187/lib/ruby/1.8/fileutils.rb:1207:in `lstat' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:1185:in `stat' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:1267:in `copy_file' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:464:in `copy_file' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:383:in `cp' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:1402:in `fu_each_src_dest' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:1418:in `fu_each_src_dest0' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:1400:in `fu_each_src_dest' from c:/Ruby187/lib/ruby/1.8/fileutils.rb:382:in `cp' from process.rb:45 On Feb 23, 7:57 am, Jarmo Pertman <jarm...@gmail.com> wrote: > Yes, since that method is deleted a long time ago already. Use > Win32::Screenshot instead. > > First, install Win32::Screenshot > gem install win32screenshot > > Then, take the screenshot by providing browser.rautomation as a > parameter: > Win32::Screenshot::Take.of(:rautomation, > browser.rautomation).write("screenshot.png") > > More examples athttps://github.com/jarmo/win32screenshot > > Jarmo Pertman > ----- > IT does really matter -http://itreallymatters.net > > On Feb 23, 2:30 am, hillary <weimar1...@gmail.com> wrote: > > > > > > > > > for the pre-release version of watir (3.0.rc2) I get a no method error > > > my code: > > browser.screen_capture($file_path,true,false) -- 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