Class: PuppeteerRailsTester::ExampleTest

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

Class Method Summary collapse

Class Method Details

.runObject



5
6
7
8
9
10
11
12
# File 'lib/puppeteer/rails/tester/example_test.rb', line 5

def self.run
  Runner.run do |browser|
    page = browser.new_page
    page.goto("http://example.com")
    puts "Page title: #{page.title}" # Outputs the title of the example.com page
    browser.close
  end
end