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

Version Path
puppeteer-ruby-0.0.21 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.20 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.19 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.18 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.17 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.16 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.15 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.14 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.13 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.12 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.11 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.10 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.9 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.8 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.6 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.5 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.4 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.3 lib/puppeteer/launcher/browser_options.rb
puppeteer-ruby-0.0.2 lib/puppeteer/launcher/browser_options.rb