Sha256: c82484e69c5ea6c747a20d66b9452ae953e4e1af149f24e752693e2b724cbdce

Contents?: true

Size: 850 Bytes

Versions: 6

Compression:

Stored size: 850 Bytes

Contents

require_relative './launcher/base'
require_relative './launcher/browser_options'
require_relative './launcher/chrome'
require_relative './launcher/chrome_arg_options'
require_relative './launcher/launch_options'

# https://github.com/puppeteer/puppeteer/blob/master/lib/Launcher.js
module Puppeteer::Launcher
  # @param {string} projectRoot
  # @param {string} preferredRevision
  # @param {boolean} isPuppeteerCore
  # @param {string=} product
  # @return {!Puppeteer.ProductLauncher}
  module_function def new(project_root:, preferred_revision:, is_puppeteer_core:, product:)
    if product == 'firefox'
      raise NotImplementedError.new('FirefoxLauncher is not implemented yet.')
    end

    Chrome.new(
      project_root: project_root,
      preferred_revision: preferred_revision,
      is_puppeteer_core: is_puppeteer_core,
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppeteer-ruby-0.0.11 lib/puppeteer/launcher.rb
puppeteer-ruby-0.0.10 lib/puppeteer/launcher.rb
puppeteer-ruby-0.0.9 lib/puppeteer/launcher.rb
puppeteer-ruby-0.0.8 lib/puppeteer/launcher.rb
puppeteer-ruby-0.0.6 lib/puppeteer/launcher.rb
puppeteer-ruby-0.0.5 lib/puppeteer/launcher.rb