How to use the selenium-standalone.start function in selenium-standalone

To help you get started, we’ve selected a few selenium-standalone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pouchdb / plugin-seed / bin / test-browser.js View on Github external
selenium.install(opts, function(err) {
    if (err) {
      console.error('Failed to install selenium');
      process.exit(1);
    }
    selenium.start(opts, function(err, server) {
      sauceClient = wd.promiseChainRemote();
      callback();
    });
  });
}
github nkbt / esnext-quickstart / scripts / test-e2e.js View on Github external
function onSeleniumInstalled(err) {
  if (err) {
    console.error(err);
    return process.exit(1);
  }

  selenium.start({seleniumArgs: ['-debug']}, onSeleniumStarted);
}
github pouchdb / pouchdb / bin / test-browser.js View on Github external
selenium.install(opts, function (err) {
    if (err) {
      console.error('Failed to install selenium');
      process.exit(1);
    }
    selenium.start(opts, function () {
      sauceClient = wd.promiseChainRemote();
      callback();
    });
  });
}
github pouchdb / upsert / bin / test-browser.js View on Github external
selenium.install(opts, function(err) {
    if (err) {
      console.error('Failed to install selenium');
      process.exit(1);
    }
    selenium.start(opts, function(err, server) {
      sauceClient = wd.promiseChainRemote();
      callback();
    });
  });
}
github gr2m / appcache-nanny / bin / test-browser.js View on Github external
function startSelenium(callback) {
  selenium.start(function() {
    var browser = wd.promiseChainRemote();
    callback(browser);
  });
}
github opbeat / opbeat-react / gulpfile.js View on Github external
selenium.install({ logger: console.log }, function (installError) {
    if (installError) {
      console.log('Error while installing selenium:', installError)
    }
    selenium.start(function (startError, child) {
      if (startError) {
        console.log('Error while starting selenium:', startError)
        return process.exit(1)
      } else {
        console.log('Selenium started!')
        function killSelenium () {
          child.kill()
          console.log('Just killed selenium!')
        }
        if (manualStop) {
          callback(killSelenium)
        }else {
          onExit(killSelenium)
          callback()
        }
      }
github pmros / cyclow / gulpfile.babel.js View on Github external
}, err => {
    if (err) return done(err)

    selenium.start({
      spawnOptions: {
          stdio: 'ignore'
      }
    }, (err, child) => {
      selenium.child = child
      console.log('Selenium error: ', err)
      done()
    })
  })
})
github BBVA / mirrorgate / mirrorgate-dashboard / gulpfile.js View on Github external
function startSelenium(done) {
  selenium.start((err, child) => {
    seleniumServer = child;
    done(err);
  });
}
github TheBrainFamily / chimpy / dist / lib / selenium.js View on Github external
return;
    }

    self.seleniumStandaloneOptions.seleniumArgs = ['-port', port];

    if (process.env['chimp.log'] === 'verbose' || process.env['chimp.log'] === 'debug') {
      self.options.seleniumDebug = true;
    }

    if (self.options.seleniumDebug) {
      self.seleniumStandaloneOptions.seleniumArgs.push('-debug');
    }

    log.debug('\n[chimp][selenium] hub can be seen at http://localhost:' + port + '/wd/hub');

    selenium.start(self.seleniumStandaloneOptions, function (error, seleniumChild) {

      self.child = seleniumChild;

      if (error) {
        callback(error);
        return;
      }

      if (self.options.seleniumDebug) {
        processHelper.logOutputs('selenium', self.child);
      }

      process.on('exit', function () {
        log.debug('[chimp][selenium] process exit event detected. Stopping process');
        self.stop(function () {
          log.debug('[chimp][selenium] process exit event stop complete');
github glacejs / glace-js / lib / steps / web.js View on Github external
this._seleniumProc = await new Promise((resolve, reject) => {

            selenium.start(opts, (err, child) => {
                if (err) reject(err);
                LOG.debug(
                    `Selenium server starts with PID ${child.pid}`);
                resolve(child);
            })
        });
        return true;

selenium-standalone

installs a `selenium-standalone` command line to install and start a standalone selenium server

MIT
Latest version published 5 months ago

Package Health Score

83 / 100
Full package analysis