Hi.

Can't make it running, if assertion failed then to capture screenshot.
I got a solution how to capture screenshot:

def screen_capture
...
...
end

Then I check in script:
assert($ie.frame(:name,"mainFrame").contains_text("Object saved"), "+++
+++FAILED! Changes were not saved")

And if this assertion is failed I want to call "screen_capture"

Can you help, how to implement this ?
BR,
Dmitri

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