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

Reply via email to