class Aquatone::Browser
Public Class Methods
visit(url, vhost, html_destination, headers_destination, screenshot_destination, options)
click to toggle source
# File lib/aquatone/browser.rb, line 3 def self.visit(url, vhost, html_destination, headers_destination, screenshot_destination, options) driver = make_driver(url, vhost, html_destination, headers_destination, screenshot_destination, options) visit = driver.visit if !visit["success"] visit = driver.visit end visit end
Protected Class Methods
make_driver(url, vhost, html_destination, headers_destination, screenshot_destination, options)
click to toggle source
# File lib/aquatone/browser.rb, line 14 def self.make_driver(url, vhost, html_destination, headers_destination, screenshot_destination, options) Aquatone::Browser::Drivers::Nightmare.new(url, vhost, html_destination, headers_destination, screenshot_destination, options) end