Sha256: 690f1897a722c7d2eb8020c14f048cc7b2ae63469c0fe92304fcab09217a3347
Contents?: true
Size: 1018 Bytes
Versions: 19
Compression:
Stored size: 1018 Bytes
Contents
# const { # ignoreDefaultArgs = false, # args = [], # dumpio = false, # executablePath = null, # pipe = false, # env = process.env, # handleSIGINT = true, # handleSIGTERM = true, # handleSIGHUP = true, # ignoreHTTPSErrors = false, # defaultViewport = {width: 800, height: 600}, # slowMo = 0, # timeout = 30000 # } = options; # const { # devtools = false, # headless = !devtools, # args = [], # userDataDir = null # } = options; module Puppeteer::Launcher class BrowserOptions # @property {boolean=} ignoreHTTPSErrors # @property {(?Puppeteer.Viewport)=} defaultViewport # @property {number=} slowMo def initialize(options) @ignore_https_errors = options[:ignore_https_errors] || false @default_viewport = options[:default_viewport] || Puppeteer::Viewport.new(width: 800, height: 600) @slow_mo = options[:slow_mo] || 0 end attr_reader :default_viewport, :slow_mo def ignore_https_errors? @ignore_https_errors end end end
Version data entries
19 entries across 19 versions & 1 rubygems