You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I have to nightmare script inside xvfb.
cnn.js has....
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 ofxvfb-run node cnn.js
The text was updated successfully, but these errors were encountered: