module ScreenshotHelper

Public Instance Methods

take_screenshot(page, example) click to toggle source
# File lib/rspec/visual/helpers/screenshot_helper.rb, line 3
def take_screenshot(page, example)
  file_path = File.join(Rspec::Visual::Configuration.screenshot_folder, "#{example.description}.png")
  page.save_screenshot(file_path, full: true)
end