Sha256: 45d03a609ab04cac341b280f1676c55de26c5db05438df0dee4bca8f903bf354

Contents?: true

Size: 352 Bytes

Versions: 18

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

require 'tmpdir'
require_relative '../../helpers/allure_helper'

Before do
  browser.window.maximize
end

After do |scenario|
  Dir.mktmpdir do |temp_folder|
    screenshot = browser.screenshot.save("#{temp_folder}/#{scenario.name}.png")
    AllureHelper.add_screenshot(scenario.name, screenshot)
  end
  browser.quit
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruby_raider-1.1.1 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.1.0 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.9 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.8 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.7 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.6 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.5 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.4 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.3 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.2 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.1 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-1.0.0 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-0.9.9 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-0.9.8 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-0.9.7 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-0.9.6 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-0.9.5 lib/generators/cucumber/templates/partials/watir_env.tt
ruby_raider-0.9.4 lib/generators/cucumber/templates/partials/watir_env.tt