-
Notifications
You must be signed in to change notification settings - Fork 29
Description
When I am using phantomjs without xray it works great.
When I am using the example:
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();
})
and run it with phantomjs test.js
I get the following error:
Error: Cannot find module 'tty'
phantomjs://bootstrap.js:289
phantomjs://bootstrap.js:254 in require
C:/Users/Gebruiker/node_modules/x-ray-phantom/node_modules/debug/node.js:6
C:/Users/Gebruiker/node_modules/x-ray-phantom/node_modules/debug/node.js:210
TypeError: '[object Object]' is not a function (evaluating 'require('debug')('x-
ray:phantom')')
C:/Users/Gebruiker/node_modules/x-ray-phantom/index.js:5
C:/Users/Gebruiker/node_modules/x-ray-phantom/index.js:93
TypeError: 'undefined' is not a function (evaluating 'phantom.loadModule(code, t
his.filename)')
phantomjs://bootstrap.js:272
phantomjs://bootstrap.js:125
phantomjs://bootstrap.js:268
phantomjs://bootstrap.js:301
phantomjs://bootstrap.js:254 in require
phantest.js:2