[Cucumber] Webrat / Watir - generating page images


#1

I am using Cucumber with Webrat/Watir/Celerity for UI testing.

I would like to generate an error report which shows the page image
for each failed test.

I believe I have read about this being done, but now I can’t find any
info online.

Can someone please point me in the right direction??

Thanks in advance!!


#2

Here’s the step I use for taking screenshots:
https://gist.github.com/dff2a429afff1c212416.


#3

(I extracted the method in the Gist, so it may be a bit off)