How to use the webdriver-manager/built/lib/binaries/chrome_driver.ChromeDriver 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 / test / protractor.conf.js View on Github external
'use strict';

var path = require('path');
var SeleniumConfig = require('webdriver-manager/built/lib/config').Config;
var SeleniumChrome = require('webdriver-manager/built/lib/binaries/chrome_driver').ChromeDriver;
var seleniumChrome = new SeleniumChrome();
seleniumChrome.versionCustom = '2.30';

// An example configuration file.
exports.config = {
  baseUrl: 'http://localhost:9000/',
  chromeDriver: path.resolve(SeleniumConfig.getSeleniumDir(), seleniumChrome.executableFilename()),

  // Capabilities to be passed to the webdriver instance.
  capabilities: {
    browserName: 'chrome',
    chromeOptions: {
      args: ['--headless', '--disable-gpu', '--window-size=1280,800']
    }
  },

  // Spec patterns are relative to the current working directly when