hermione-selenium-standalone-runner-pack

1.0.1 • Public • Published

Hermione selenium standalone runner

This package has been created to automatic run selenium-standalone package of Hermione testing.

And include simple module:

module.exports = (hermione) => {
let selenuim;

    hermione.on(hermione.events.RUNNER_START, async () => {
        const file = fs.openSync('selenuim-log', 'w');

        selenuim = spawn('selenium-standalone', ['start'], {
            stdio: ['ignore', file, file],
            shell: true
        });

        await delay(2000);
    });

    hermione.on(hermione.events.RUNNER_END, () => {
        return new Promise((resolve) => {
            selenuim.on('exit', () => resolve());

            selenuim.kill();
        })
    })
};

Readme

Keywords

Package Sidebar

Install

npm i hermione-selenium-standalone-runner-pack

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2 kB

Total Files

3

Last publish

Collaborators

  • ali-gator