Class: PuppeteerRailsTester::Runner
- Inherits:
-
Object
- Object
- PuppeteerRailsTester::Runner
- Defined in:
- lib/puppeteer-rails-tester.rb
Overview
Runner class to handle Puppeteer interactions
Class Method Summary collapse
Class Method Details
.run ⇒ Object
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 |