I use cucumber and watir-webdriver and try to take a screenshot if it fails. With the examples that I found, it technically works, but the created png files are empty or 0kb.
I tried chrome and firefox and I use win7 x64 system.
I put the following in my env.rb file.
After do |scenario| if scenario.failed?
How can I make it actually capture what is on the screen?
source share