lib/puppeteer/target.rb in puppeteer-ruby-0.0.25 vs lib/puppeteer/target.rb in puppeteer-ruby-0.0.26
- old
+ new
@@ -16,19 +16,17 @@
# @param {!Protocol.Target.TargetInfo} targetInfo
# @param {!Puppeteer.BrowserContext} browserContext
# @param {!function():!Promise<!Puppeteer.CDPSession>} sessionFactory
# @param {boolean} ignoreHTTPSErrors
# @param {?Puppeteer.Viewport} defaultViewport
- # @param {!Puppeteer.TaskQueue} screenshotTaskQueue
- def initialize(target_info:, browser_context:, session_factory:, ignore_https_errors:, default_viewport:, screenshot_task_queue:)
+ def initialize(target_info:, browser_context:, session_factory:, ignore_https_errors:, default_viewport:)
@target_info = target_info
@browser_context = browser_context
@target_id = target_info.target_id
@session_factory = session_factory
@ignore_https_errors = ignore_https_errors
@default_viewport = default_viewport
- @screenshot_task_queue = screenshot_task_queue
# /** @type {?Promise<!Puppeteer.Page>} */
# this._pagePromise = null;
# /** @type {?Promise<!Worker>} */
@@ -85,10 +83,10 @@
end
def page
if ['page', 'background_page', 'webview'].include?(@target_info.type) && @page.nil?
client = @session_factory.call
- @page = Puppeteer::Page.create(client, self, @ignore_https_errors, @default_viewport, @screenshot_task_queue)
+ @page = Puppeteer::Page.create(client, self, @ignore_https_errors, @default_viewport)
end
@page
end
# /**