How to use the chromedriver/lib/chromedriver.path function in chromedriver

To help you get started, we’ve selected a few chromedriver 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 jan-molak / serenity-js / examples / protractor-cucumber / protractor.conf.js View on Github external
const
    { ConsoleReporter } = require('@serenity-js/console-reporter'),
    { ArtifactArchiver, StreamReporter } = require('@serenity-js/core'),
    { SerenityBDDReporter } = require('@serenity-js/serenity-bdd');

exports.config = {
    chromeDriver: require('chromedriver/lib/chromedriver').path,
    SELENIUM_PROMISE_MANAGER: false,

    directConnect: true,

    allScriptsTimeout: 11000,

    specs: [ 'features/*.feature', ],

    framework:      'custom',
    frameworkPath:  require.resolve('@serenity-js/protractor/adapter'),

    serenity: {
        crew: [
            ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
            new SerenityBDDReporter(),
            // ConsoleReporter.forDarkTerminals(),
github TradeMe / tractor / protractor.conf.js View on Github external
multiCapabilities: [{
        browserName: 'chrome',
        shardTestFiles: true,
        maxInstances: 2
    }, {
        browserName: 'chrome',
        shardTestFiles: true,
        maxInstances: 2,
        chromeOptions: {
            args: [
                '--headless',
                '--disable-gpu'
            ]
        }
    }],
    chromeDriver: require('chromedriver/lib/chromedriver').path,
    geckoDriver: require('geckodriver/lib/geckodriver').path,
    mochaOpts: {
        timeout: TIMEOUT
    },
    directConnect: true,
    SELENIUM_PROMISE_MANAGER: false
};