Sha256: a14d31b3df9ba54aab4b79a2fef985baeab4b9be49199388e53ce4814d65bf30
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
Before do |scenario| @path_screenshots = "screenshots/#{scenario.feature.name}/#{scenario.name}" FileUtils.mkpath @path_screenshots end AfterStep do |step| screenshot = "#{@path_screenshots}/#{Time.now.strftime("%d%m%Y%H%M")}.png" @browser.screenshot.save(screenshot) embed screenshot , 'image/png' end After do |scenario| @browser.cookies.clear rescue warn 'No session to clear' @browser.refresh end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
setupWatirCucumber-0.2.0 | lib/setupWatirCucumber/folder_cp/hooks.rb |
setupWatirCucumber-0.1.0 | lib/setupWatirCucumber/folder_cp/hooks.rb |