Class: PuppeteerRailsTester::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer-rails-tester.rb

Overview

Runner class to handle Puppeteer interactions

Class Method Summary collapse

Class Method Details

.runObject



8
9
10
11
12
13
14
15
# File 'lib/puppeteer-rails-tester.rb', line 8

def self.run
  Puppeteer.launch(headless: true) do |browser|
    yield(browser) if block_given? # Pass the browser to a block
  end
#rescue => e
# puts "Failed to launch Puppeteer: #{e.message}"
#end
end