On Fri, Apr 26, 2013 at 5:20 AM, Christian <songyangyang2...@gmail.com>wrote:

> I want to save a picture of an element like a button


If you are using watir-classic:

browser.image.save("c:/foo/bar.jpg")

More information:
http://rdoc.info/gems/watir-classic/Watir/Image#save-instance_method

If you are using watir-webdriver, it is not implemented yet:

http://rdoc.info/gems/watir-webdriver/Watir/Image#save-instance_method

Željko
--
https://leanpub.com/watirbook

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to