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.jpgvariable, you might try the following:
screen_capture("
C:[EMAIL PROTECTED]<C:[EMAIL PROTECTED]>"
, true, false)
or this:
screen_capture("
C:/InstantRails/rails_apps/watir_tests/public/images/[EMAIL PROTECTED]<C:[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("
C:[EMAIL PROTECTED]<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