Skip to content

How to run with nightmarejs ? #25

@GautierT

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 !

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