Sha256: 67cc914f3cacef2db3cba9c126a8a9a0f9baa1eaf10b6a0196f30bd5afeb6ade
Contents?: true
Size: 1.02 KB
Versions: 35
Compression:
Stored size: 1.02 KB
Contents
require_relative './launcher/browser_options' require_relative './launcher/chrome' require_relative './launcher/chrome_arg_options' require_relative './launcher/firefox' require_relative './launcher/launch_options' # https://github.com/puppeteer/puppeteer/blob/main/src/node/Launcher.ts module Puppeteer::Launcher # @param project_root [String] # @param prefereed_revision [String] # @param is_puppeteer_core [String] # @param product [String] 'chrome' or 'firefox' # @return [Puppeteer::Launcher::Chrome] module_function def new(project_root:, preferred_revision:, is_puppeteer_core:, product:) unless is_puppeteer_core product ||= ENV['PUPPETEER_PRODUCT'] end if product == 'firefox' return Firefox.new( project_root: project_root, preferred_revision: preferred_revision, is_puppeteer_core: is_puppeteer_core, ) end Chrome.new( project_root: project_root, preferred_revision: preferred_revision, is_puppeteer_core: is_puppeteer_core, ) end end
Version data entries
35 entries across 35 versions & 1 rubygems