(Based entirely on wdio-selenium-standalone-service.)
This service helps you to run ChromeDriver seamlessly when running tests with the WDIO testrunner. It uses the chromedriver NPM package that wraps the ChromeDriver for you.
Note - this service does not require a Selenium server, but uses ChromeDriver to communicate with the browser directly. Obvisously, it only supports:
capabilities: [{
browserName: 'chrome'
}]
The easiest way is to keep wdio-chromedriver-service
as a devDependency in your package.json
.
{
"devDependencies": {
"wdio-chromedriver-service": "~0.1"
}
}
You can simple do it by:
npm install wdio-chromedriver-service --save-dev
Instructions on how to install WebdriverIO
can be found here.
By design, only Google Chrome is available (when installed on the host system). In order to use the service you need to add chromedriver
to your service array:
// wdio.conf.js
export.config = {
port: '9515',
path: '/',
// ...
services: ['chromedriver'],
// ...
};
Path where all logs from the ChromeDriver server should be stored.
Type: String
For more information on WebdriverIO see the homepage.