Improve this doc
WDIO ChromeDriver Service
(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.
Obviously, it only supports:
1 2 3
| capabilities: [{ browserName: 'chrome' }]
|
Installation
The easiest way is to keep wdio-chromedriver-service
as a devDependency in your package.json
.
1 2 3 4 5
| { "devDependencies": { "wdio-chromedriver-service": "~0.1" } }
|
You can simple do it by:
1
| npm install wdio-chromedriver-service --save-dev
|
Instructions on how to install WebdriverIO
can be found here.
Configuration
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:
1 2 3 4 5 6 7 8
| export.config = { port: '9515', path: '/', services: ['chromedriver'], };
|
Options
chromeDriverLogs
Path where all logs from the ChromeDriver server should be stored.
Type: String
For more information on WebdriverIO see the homepage.