Skip to content

Commit

Permalink
fix: Fix driver path env vars, driver documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Jan 26, 2022
1 parent efe2a0a commit 5f80282
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ npm install --save-dev karma-local-wd-launcher
```


## Drivers

This launcher assumes that drivers such as `chromedriver`, `geckodriver`, and
`safaridriver` (Mac only) are already installed, executable, and in your `PATH`.

Alternately, you may use the environment variables `CHROMEDRIVER_PATH`,
`GECKODRIVER_PATH`, or `SAFARIDRIVER_PATH` to indicate where these drivers are
installed.


## Configuration

```js
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const LocalWebDriverBase =
win32: driverCommand,
};

this.ENV_CMD = this.browserName.toUpperCase() + '_CMD';
this.ENV_CMD = driverCommand.toUpperCase() + '_PATH';

const config = {
protocol: 'http:',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "karma-local-wd-launcher",
"version": "1.0.0",
"version": "1.0.1",
"description": "Karma Local WebDriver Launcher - Launches local web browsers using WebDriver, to enable screenshots and other advanced tests to be executed in-browser.",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 5f80282

Please sign in to comment.