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