Thanks for the tip Jarmo, Any reason you can think of to why I am unable to run the screenshot function with test_unit_loader.rb
I have it set up like this gem 'test-unit' require 'test/unit' require 'ci/reporter/rake/test_unit_loader.rb' require 'watir' class ASPEC01_log < Test::Unit::TestCase include Watir def test_me ie = Watir::IE.new Script runs fine with unit loader alone or with win32screenshot alone, but together they break. On Wednesday, March 28, 2012 1:58:35 PM UTC-7, Jarmo Pertman wrote: > > Use window handle instead of title if possible: > Win32::Screenshot::Take.of(:window, :hwnd => > browser.hwnd).write(screenshot) > > Or if you're using some newer Watir, then use :rautomation attribute > instead: > Win32::Screenshot::Take.of(:rautomation, > browser.rautomation).write(screenshot) > > Jarmo > > On Mar 28, 12:12 am, enroxorz <enrique.j.ma...@gmail.com> wrote: > > No worries, any time :) > > > > > > > > > > > > > > > > On Tuesday, March 27, 2012 4:23:33 PM UTC-4, Ry wrote: > > > > > that worked perfectly! Thank you ever so much! > > > > > On Tuesday, March 27, 2012 9:23:21 AM UTC-7, Ry wrote: > > > > >> Wondering if possible to snap shot the last screen / event my script > was > > >> on when it finds an error / ends. I am using logging as well, but my > > >> employer is requesting screen shots to go hand in hand with the logs > to > > >> show other users where the error on sites are. I pinged irc and got > > >> response that cucumber is good for this. I have seen the article on > > >> watirmelon site, but I am not using cucumber unfortunately. I am > hoping to > > >> continue using watir in it's purest form. > > > > >> Thanks for any examples, leads, or suggestions that might stir me to > my > > >> goal. > > > > >> Ry -- 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