Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (24 sloc) 0.707 kb
# Constructor for a new Browser. Takes no arguments.
exports.Browser = require("./zombie/browser").Browser
# ### visit url, callback
#
# Creates a new Browser, opens window to the URL and calls the callback when
# done processing all events.
#
# For example:
# zombie = require("zombie")
#
# vows.describe("Brains").addBatch(
# "seek":
# topic: ->
# zombie.browse "http://localhost:3000/brains", @callback
# "should find": (browser)->
# assert.ok browser.html("#brains")[0]
# ).export(module);
#
# url -- URL of page to open
# callback -- Called with error, browser
exports.visit = (url, callback)->
browser = new exports.Browser
browser.visit url, callback
return
Jump to Line
Something went wrong with that request. Please try again.