Those two are not working for me
"undefined local variable or method `browser' for #<Object:0x30c1620> (Name 
Error)"
 
Whereas 
"Win32::Screenshot::Take.of(:window, :title => /Windows Internet 
Explorer/).write(screenshot)"
works like a charm.
 
Regards,
RL
 

On Wednesday, March 28, 2012 10:58:35 PM UTC+2, 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 <[email protected]> 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.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to