class Capybara::Mechanize::Driver

Public Class Methods

new(app, options = {}) click to toggle source
# File lib/capybara/mechanize/driver.rb, line 5
def initialize(app, options = {})
  raise ArgumentError, "mechanize requires a rack application, but none was given" unless app

  super
end

Public Instance Methods

browser() click to toggle source
# File lib/capybara/mechanize/driver.rb, line 19
def browser
  @browser ||= Capybara::Mechanize::Browser.new(self)
end
configure() { |agent| ... } click to toggle source
# File lib/capybara/mechanize/driver.rb, line 15
def configure(&block)
  yield(browser.agent) if block_given?
end
remote?(url) click to toggle source
# File lib/capybara/mechanize/driver.rb, line 11
def remote?(url)
  browser.remote?(url)
end