Sha256: 0f21ef26a0cdb304a682d0305408266776b07adfe39079542b893ab2347b0383
Contents?: true
Size: 364 Bytes
Versions: 8
Compression:
Stored size: 364 Bytes
Contents
var page = require('webpage').create(); page.open('http://localhost:8000/?script=phantom'); page.onConsoleMessage = function(message) { console.log('CONSOLE ' + message); }; page.onConfirm = function(message) { console.log('FAIL ' + message); phantom.exit(); }; page.onClosing = function(page) { console.log('SUCCESS ' + page.url); phantom.exit(); };
Version data entries
8 entries across 8 versions & 1 rubygems