Skip to content

Instantly share code, notes, and snippets.

@jnicklas
Created March 11, 2013 19:43
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jnicklas/5137053 to your computer and use it in GitHub Desktop.
Save jnicklas/5137053 to your computer and use it in GitHub Desktop.
require "capybara"
html = DATA.read
app = proc { |env| [200, { "Content-Type" => "text/html" }, [html] ] }
sess = Capybara::Session.new(:selenium, app)
sess.visit("/")
__END__
<!doctype html>
<html>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment