Hi Charley,

 

Thanks for that.

 

Regarding the omission of curly braces, I didn't think they were required
when referencing a global or instance variable.

According to the ruby pickaxe book anyway ;)

 

Cheers,

Matt

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker
Sent: 11 April 2007 20:08
To: [EMAIL PROTECTED]
Subject: Re: [Wtr-general] screen_capture filename

 

This is probably some code that needs to be yanked out and put in contrib. I
haven't used it and have yet to hear anyone else using it although I'm sure
there are some. You might take a look at Aslak Hellesoy's screenshot
library.
http://blog.aslakhellesoy.com/2006/12/2/getting-screenshots-from-watir
which might make sense to include in Watir vs the screen_capture library
since his implementation has unit tests. You can enter a ticket for that in
Jira if you'd like. As far as the current function, taking a brief look at
it, you've not included curly brackets for evaluation on the time.jpg
variable, you might try the following: 

screen_capture("
<mailto:C:[EMAIL PROTECTED]
ime.jpg>
C:[EMAIL PROTECTED]" ,
true, false) 

 or this: 

screen_capture("
<mailto:C:[EMAIL PROTECTED]
ime.jpg>  C:/InstantRails/rails_apps/watir_tests/public/images/[EMAIL 
PROTECTED]"
, true, false) 

which should get converted into the same thing. 

 

-Charley  

 

On 4/11/07, Matt Makins <[EMAIL PROTECTED]> wrote:

i am using the screen_capture function which i have working correctly.

 

How do i specify the path where i want to save the image file?

 

                screen_capture("
<mailto:C:[EMAIL PROTECTED]
ime.jpg>  C:[EMAIL PROTECTED]" ,
true, false)

 

this doesn't work, anybody tried this??

 

Cheers,

Matt


_______________________________________________
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general

 

_______________________________________________
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to