Sha256: b7cb7b12c93232024b1e1acaecb2ca84a59d3c0d57d0fb5e7405f4f08c7c7c5d

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

require_relative '../../helpers/browser_helper'

Before do
  Raider::AllureHelper.configure
  Raider::BrowserHelper.new_browser
end

After do |scenario|
  browser = Raider::BrowserHelper.browser
  browser.screenshot.save("allure-results/screenshots/#{scenario.name}.png")
  Raider::AllureHelper.add_screenshot(scenario.name)
  browser.quit
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_raider-0.2.2 lib/generators/templates/cucumber/partials/watir_env.tt
ruby_raider-0.2.1 lib/generators/templates/cucumber/partials/watir_env.tt
ruby_raider-0.2.0 lib/generators/templates/cucumber/partials/watir_env.tt