How to use the webdriver-manager/built/lib/binaries/stand_alone.StandAlone function in webdriver-manager

To help you get started, we’ve selected a few webdriver-manager 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 M6Web / GithubTeamReviewer / gulp / e2e-tests.js View on Github external
gulp.task('protractor-only', ['webdriver-update'], function (done) {
  var testFiles = [
    'test/e2e/**/*.js'
  ];

  var seleniumStandAlone = new SeleniumStandAlone();
  seleniumStandAlone.versionCustom = '3.4.0';
  var seleniumServerJar = path.resolve(SeleniumConfig.getSeleniumDir(), seleniumStandAlone.executableFilename());

  gulp.src(testFiles)
    .pipe($.protractor.protractor({
      args: ['--seleniumServerJar='+seleniumServerJar],
      configFile: 'test/protractor.conf.js'
    }))
    .on('error', function (err) {
      // Make sure failed tests cause gulp to exit non-zero
      throw err;
    })
    .on('end', function () {
      // Close browser sync server
      $.browserSync.exit();
      done();