Sha256: d2eba0eaaf7b2fcf08ead11c4d659c8500d7c354da6248f13cbfbd01e84f92d7
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
var Poltergeist; 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); } Poltergeist = (function() { function Poltergeist(port) { this.browser = new Poltergeist.Browser(this); this.connection = new Poltergeist.Connection(this, port); } Poltergeist.prototype.runCommand = function(command) { try { return this.browser[command.name].apply(this.browser, command.args); } catch (error) { return this.connection.send({ error: error.toString() }); } }; Poltergeist.prototype.sendResponse = function(response) { return this.connection.send({ response: response }); }; return Poltergeist; })(); Poltergeist.ObsoleteNode = (function() { function ObsoleteNode() {} ObsoleteNode.prototype.toString = function() { return "Poltergeist.ObsoleteNode"; }; return 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/compiled/main.js |