Forum: RSpec Take screenshot even if the test case get passed

552dd365e93706c32968ec824b50320b?d=identicon&s=25 Mattias Andersson (tenth)
on 2013-09-06 12:37
Hi,

I am using selenium webdriver and rspec so when a test case fail a
screenshot is taken. But is there any way to take a screenshot for all
test cases so even when the test case pass?

Thanks in advance!
Mattias
552dd365e93706c32968ec824b50320b?d=identicon&s=25 Mattias Andersson (tenth)
on 2013-09-06 13:43
I found the solution! driver.save_screenshot(./screenshot.png)

https://code.google.com/p/selenium/source/browse/r...
This topic is locked and can not be replied to.