# 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
# File lib/capybara/mechanize/driver.rb, line 19 def browser @browser ||= Capybara::Mechanize::Browser.new(self) end
# File lib/capybara/mechanize/driver.rb, line 15 def configure(&block) yield(browser.agent) if block_given? end
# File lib/capybara/mechanize/driver.rb, line 11 def remote?(url) browser.remote?(url) end