title: Can Poltergeist and Capybara be used standalone?
body: <p>Assuming I have PhantomJS installed on Mac OS X, can I write a plain old Ruby script (no Cucumber, no RSpec) to drive Poltergeist? In other words, I want to require some gems, set the Capybara driver to Poltergeist and then start calling page.fn() to pull down pages, analyze contents, etc? </p>
  
  <p>UPDATE: Here is what I have created. It seems to work. </p>
  
  <pre><code>require 'awesome_print'
  require 'capybara'
  require 'capybara/dsl'
  require 'capybara/poltergeist'
  
  Capybara.javascript_driver = :poltergeist
  Capybara.run_server = false
  Capybara.app_host = 'http://www.google.com'
  Capybara.current_driver = :poltergeist
  
  include Capybara::DSL
  
  visit '/'
  
  page.driver.network_traffic.each do |request|
    ap request.response_parts
  end
  </code></pre>
  
  <p>I know the naked include is bad, but I am just hacking at the moment before I encapsulate this in a class. </p>
  
  <p>Feedback? </p>