Skip to content

Commit

Permalink
feat: provide a way to configure location of executable in customLaun…
Browse files Browse the repository at this point in the history
…cher (fix #125)
  • Loading branch information
pantosha authored and birtles committed Nov 3, 2020
1 parent fa165ba commit c53efcc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ environment variables:
* `FIREFOX_NIGHTLY_BIN` (for browser `FirefoxNightly` or
`FirefoxNightlyHeadless`)

### Custom Firefox location

In addition to Environment variables you can specify location of the Firefox executable in a custom launcher:

```js
browsers: ['Firefox68', 'Firefox78'],

customLaunchers: {
Firefox68: {
base: 'Firefox',
name: 'Firefox68',
command: '<path to FF68>/firefox.exe'
},
Firefox78: {
base: 'Firefox',
name: 'Firefox78',
command: '<path to FF78>/firefox.exe'
}
}
```

### Custom Preferences
To configure preferences for the Firefox instance that is loaded, you can specify a custom launcher in your Karma
config with the preferences under the `prefs` key:
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ var FirefoxBrowser = function (id, baseBrowserDecorator, args) {

this._start = function (url) {
var self = this
var command = this._getCommand()
var command = args.command || this._getCommand()
var profilePath = args.profile || self._tempDir
var flags = args.flags || []
var extensionsDir
Expand Down

0 comments on commit c53efcc

Please sign in to comment.