Skip to content
phantom driver for x-ray.
Branch: master
Clone or download
Latest commit 9726f1e Jul 10, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test finished up tests Apr 28, 2015
.gitignore started the tests, they probably need to be re-written Apr 28, 2015
.npmignore Initial commit Feb 4, 2015
History.md
Makefile update timeout Apr 28, 2015
Readme.md update test Apr 28, 2015
index.js Fix a bug where options weren't being loaded into Nightmare Jul 9, 2015
package.json
test.js untested. in the middle Apr 27, 2015

Readme.md

x-ray-phantom

phantom driver for x-ray.

Installation

npm install x-ray-phantom

Usage

var phantom = require('x-ray-phantom');
var Xray = require('x-ray');

var x = Xray()
  .driver(phantom());

x('http://google.com', 'title')(function(err, str) {
  if (err) return done(err);
  assert.equal('Google', str);
  done();
})

API

phantom([options|fn], [fn])

Initialize the phantom driver with options being passed to Nightmare and an optional custom fn with the signature function(nightmare, done).

Test

npm install
make test

License

MIT

You can’t perform that action at this time.