lib/puppeteer/page.rb in puppeteer-ruby-0.44.2 vs lib/puppeteer/page.rb in puppeteer-ruby-0.44.3
- old
+ new
@@ -1102,10 +1102,10 @@
screenshot_params = {
format: format,
quality: screenshot_options.quality,
clip: clip,
captureBeyondViewport: screenshot_options.capture_beyond_viewport?,
- fromSurface: screenshot_options.from_surface?,
+ fromSurface: screenshot_options.from_surface,
}.compact
result = @client.send_message('Page.captureScreenshot', screenshot_params)
reset_default_background_color if should_set_default_background
if screenshot_options.full_page? && @viewport