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

Version Path
RubyApp-0.6.59 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.58 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.57 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.53 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.52 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.51 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.50 lib/ruby_app/scripts/phantom.js
RubyApp-0.6.49 lib/ruby_app/scripts/phantom.js