class Capybara::RackTest::Driver

def browser

def browser
  @browser ||= Capybara::RackTest::Browser.new(self)
end

def current_url

def current_url
  browser.current_url
end

def delete(*args, &block); browser.delete(*args, &block); end

def delete(*args, &block); browser.delete(*args, &block); end

def dom

def dom
  browser.dom
end

def find_css(selector)

def find_css(selector)
  browser.find(:css, selector)
end

def find_xpath(selector)

def find_xpath(selector)
  browser.find(:xpath, selector)
end

def follow(method, path, **attributes)

def follow(method, path, **attributes)
  browser.follow(method, path, attributes)
end

def follow_redirects?

def follow_redirects?
  @options[:follow_redirects]
end

def get(*args, &block); browser.get(*args, &block); end

def get(*args, &block); browser.get(*args, &block); end

def header(key, value); browser.header(key, value); end

def header(key, value); browser.header(key, value); end

def html

def html
  browser.html
end

def initialize(app, **options)

def initialize(app, **options)
  raise ArgumentError, "rack-test requires a rack application, but none was given" unless app
  @session = nil
  @app = app
  @options = DEFAULT_OPTIONS.merge(options)
end

def post(*args, &block); browser.post(*args, &block); end

def post(*args, &block); browser.post(*args, &block); end

def put(*args, &block); browser.put(*args, &block); end

def put(*args, &block); browser.put(*args, &block); end

def redirect_limit

def redirect_limit
  @options[:redirect_limit]
end

def refresh

def refresh
  browser.refresh
end

def request

def request
  browser.last_request
end

def reset!

def reset!
  @browser = nil
end

def response

def response
  browser.last_response
end

def response_headers

def response_headers
  response.headers
end

def status_code

def status_code
  response.status
end

def submit(method, path, attributes)

def submit(method, path, attributes)
  browser.submit(method, path, attributes)
end

def title

def title
  browser.title
end

def visit(path, **attributes)

def visit(path, **attributes)
  browser.visit(path, attributes)
end