Skip to content

Commit

Permalink
document how to link geckodriver.exe manually (#32)
Browse files Browse the repository at this point in the history
* Revert "add bin target w/.exe extension (#29)"

This reverts commit f461013.

* explain how to make it work with selenium-webdriver on Windows

* remove prompt so users can easily copy/paste command
  • Loading branch information
mykmelez authored and vladikoff committed Aug 29, 2017
1 parent b33e0d1 commit cbfb004
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,19 @@ profile.setPreference('marionette', true);
// profile.setPreference('marionette.logging', 'TRACE');
```

### Use it globally:

```
npm install -g geckodriver
geckodriver [args]
```

Note: This installs a `geckodriver` shell script that runs the executable, but on Windows, selenium-webdriver looks for `geckodriver.exe`. To use a global installation of this package with selenium-webdriver on Windows, copy or link `geckodriver.exe` to a location on your PATH (such as the NPM bin directory) after installing this package:

```
mklink %USERPROFILE%\AppData\Roaming\npm\geckodriver.exe %USERPROFILE%\AppData\Roaming\npm\node_modules\geckodriver\geckodriver.exe
```

## Setting a CDN URL for binary download

To set an alternate CDN location for geckodriver binaries, set the `GECKODRIVER_CDNURL` like this:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -17,8 +17,7 @@
},
"main": "lib/geckodriver",
"bin": {
"geckodriver": "./bin/geckodriver",
"geckodriver.exe": "./bin/geckodriver"
"geckodriver": "./bin/geckodriver"
},
"license": "MPL-2.0",
"bugs": {
Expand Down

0 comments on commit cbfb004

Please sign in to comment.