Skip to content

Commit

Permalink
[rb] fix incorrect method name
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 22, 2024
1 parent 1164555 commit 11c799a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/takes_screenshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def save_screenshot(png_path, full_page: false)
# @api public

def screenshot_as(format, full_page: false)
if full_page && !respond_to(:full_page)
if full_page && !respond_to?(:full_page)
raise Error::UnsupportedOperationError, "Full Page Screenshots are not supported for #{inspect}"
end

Expand Down

0 comments on commit 11c799a

Please sign in to comment.