Module: ScreenshotHelper
- Defined in:
- lib/rspec/visual/helpers/screenshot_helper.rb
Instance Method Summary collapse
Instance Method Details
#take_screenshot(page, example) ⇒ Object
3 4 5 6 |
# 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 |