2.0.0 • Published 5 years ago
@coorpacademy/wdio-chromedriver-service v2.0.0
WDIO ChromeDriver service
This service help you to run chromedriver from npm package or from local install when runnings test with WDIO.
Installation
Install @coorpacademy/wdio-chromedriver-service
and chromedriver
packages.
npm install --save-dev @coorpacademy/wdio-chromedriver-service chromedriver
Adds service in wdio.config.js
const ChromeDriverService = require('@coorpacademy/wdio-chromedriver-service');
exports.config = {
host: '0.0.0.0',
port: 9515,
path: '/',
services: [[ChromeDriverService, {}]],
chromeDriverArgs: ['--port=9516'],
chromeDriverPath: '/usr/bin/chromedriver',
capabilities: [
{
browserName: 'chrome',
chromeOptions: {
args: ['--headless', '--disable-gpu', '--no-sandbox']
}
}
]
};
Options
chromeDriverArgs
Array of arguments to pass to the ChromeDriver executable, see https://helpmanual.io/help/chromedriver.
Type: string[]
chromeDriverPath
Path of chromedriver bin. Overwrite this value to use local chromedriver install.
Type: string
2.0.0
5 years ago
2.0.0-gamma
5 years ago
2.0.0-beta
5 years ago
2.0.0-alpha.0
5 years ago
1.0.1
6 years ago
1.0.0
6 years ago