Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #30 from erwinheitzman/update-readme-for-v6
Browse files Browse the repository at this point in the history
chromedriver: update readme
  • Loading branch information
atti187 committed Apr 2, 2020
2 parents 5d3543c + 1b8dac7 commit 9d255ff
Showing 1 changed file with 42 additions and 17 deletions.
59 changes: 42 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ WDIO ChromeDriver Service

(Based entirely on [wdio-selenium-standalone-service](https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-selenium-standalone-service).)

Note - starting with version 5.0.0, this service is targeted at WDIO v5. If you're working with WDIO v4, use latest version _before_ 5.0.0!
Note:
If you're working with WebdriverIO v6, use version 6.X.X\
If you're working with WebdriverIO v5, use version 5.X.X\
If you're working with WebdriverIO v4, use version 4.X.X\

----

Expand All @@ -25,7 +28,7 @@ The easiest way is to keep `wdio-chromedriver-service` as a devDependency in you
```json
{
"devDependencies": {
"wdio-chromedriver-service": "^5.0.0"
"wdio-chromedriver-service": "^6.0.0"
}
}
```
Expand All @@ -51,29 +54,51 @@ By design, only Google Chrome is available (when installed on the host system).
```js
// wdio.conf.js
export.config = {
// port to find chromedriver
port: 9515, // default for ChromeDriver
path: '/',
outputDir: 'all-logs',
// ...
services: ['chromedriver'],

// options
chromeDriverArgs: ['--port=9515', '--url-base=\'/\''], // default for ChromeDriver
chromeDriverLogs: './',
services: [
['chromedriver', {
outputDir: 'driver-logs', // overwrites the config.outputDir
}]
],
// ...
};
```

## Options

### chromeDriverArgs
Array of arguments to pass to the ChromeDriver executable, see [https://helpmanual.io/help/chromedriver](https://helpmanual.io/help/chromedriver).
* `--port` will use wdioConfig.port if not specified
* `--url-base` will used wdioConfig.path if not specified
### port
The port on which the driver should run on

Example: 7676

Type: `number`

### path
The path on which the driver should run on

Example: `/wd/hub`

Type: `string`

### protocol
The protocol on which the driver should use

Example: `http`

Type: `string`

### hostname
The protocol on which the driver should use

Example: `localhost`

Type: `string`

### outputDir
The path where the output of the ChromeDriver server should be stored (uses the config.outputDir by default when not set).

Type: `string[]`
### chromeDriverLogs
Path where all logs from the ChromeDriver server should be stored.
Example: `driver-logs`

Type: `string`

Expand Down

0 comments on commit 9d255ff

Please sign in to comment.