-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I have to nightmare script inside xvfb.
xvfb-run node cnn.js
cnn.js has....
var Nightmare = require('../nightmare');
var vo = require('vo');
vo(run)(function(err, result) {
if (err) throw err;
});
function *run() {
var nightmare = Nightmare();
var title = yield nightmare
.goto('http://cnn.com')
.evaluate(function() {
return document.title;
});
console.log(title);
yield nightmare.end();
}
is there a way to write the whole code inside X Virtual Frame Buffer, so that we can execute in normal way
node cnn.js instead of xvfb-run node cnn.js
Metadata
Metadata
Assignees
Labels
No labels