Skip to content

Commit

Permalink
Forward save_screenshot options to selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jan 26, 2024
1 parent c6a04a9 commit ff859c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/selenium/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def send_keys(*args)
native_active_element.send_keys(*args)
end

def save_screenshot(path, **_options)
browser.save_screenshot(path)
def save_screenshot(path, **options)
browser.save_screenshot(path, **options)
end

def reset!
Expand Down

0 comments on commit ff859c8

Please sign in to comment.