[rspec-users] Take screenshot even if the test case get passed

Mattias Andersson lists at ruby-forum.com
Fri Sep 6 11:43:51 UTC 2013


I found the solution! driver.save_screenshot(./screenshot.png)

https://code.google.com/p/selenium/source/browse/rb/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb?spec=svnc760e25d147e8a58e2dda9d651811f50f19b0300&r=c760e25d147e8a58e2dda9d651811f50f19b0300

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list