Method: Capybara::Session#save_screenshot
- Defined in:
- lib/capybara/session.rb
#save_screenshot(path = nil, **options) ⇒ String
747 748 749 |
# File 'lib/capybara/session.rb', line 747 def save_screenshot(path = nil, **) prepare_path(path, 'png').tap { |p_path| driver.save_screenshot(p_path, **) } end |