Skip to content

Running inside X Virtual Frame Buffer #16

@sriducati

Description

@sriducati

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions