Sha256: 4465de2a96cac68c5fc2bac7700a8f89c7ac54dd1ca16acf067bd70cc5d5e775
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
if "#{phantom.version.major}.#{phantom.version.minor}.#{phantom.version.patch}" < "1.4.1" console.log "Poltergeist requires a PhantomJS version of at least 1.4.1" phantom.exit(1) class Poltergeist constructor: (port) -> @browser = new Poltergeist.Browser(this) @connection = new Poltergeist.Connection(this, port) runCommand: (command) -> try @browser[command.name].apply(@browser, command.args) catch error @connection.send({ error: error.toString() }) sendResponse: (response) -> @connection.send({ response: response }) class Poltergeist.ObsoleteNode toString: -> "Poltergeist.ObsoleteNode" phantom.injectJs('web_page.js') phantom.injectJs('node.js') phantom.injectJs('connection.js') phantom.injectJs('browser.js') new Poltergeist(phantom.args[0])
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
poltergeist-0.3.0 | lib/capybara/poltergeist/client/main.coffee |