Skip to content

How to run with nightmarejs ? #25

Description

@GautierT

Hi,
how to use it with nightmarejs ?
Should i do :

headless(options, (err, childProcess, servernum) =>{
        // childProcess is a ChildProcess, as returned from child_process.spawn()
        console.log('Xvfb running on server number', servernum);
        console.log('Xvfb pid', childProcess.pid);
        console.log('err should be null', err);

        const nightmare = new Nightmare({
            //show: true,
            webPreferences: {
                partition: 'nopersist'
            }
        });
        console.log('nightmare started')
        nightmare.goto('http://www.google.fr')
       // ..... other instruction....
});

Nightmare seems to start but nothing happen after...

Thanks !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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