Skip to content

Commit

Permalink
fix: selenium invocation -debug argument
Browse files Browse the repository at this point in the history
The selenium jar switched (back) to just `-debug` and not `-debug true`

Fixes errors like:

```
Exception in thread "main" com.beust.jcommander.ParameterException: Was
passed main parameter 'true' but no main parameter was defined in your
arg class
```
  • Loading branch information
dbushong committed Mar 22, 2018
1 parent ea0d9fc commit 346055d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ test/tmp
examples/**/log
test/log
bin
/package-lock.json
4 changes: 1 addition & 3 deletions lib/processes/selenium/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ function getSeleniumOptions(config) {
'-jar', jarPath,
'-port', '' + port
]);
if (config.getBool('selenium.debug', false)) {
args.push('-debug', 'true');
}
if (config.getBool('selenium.debug', false)) args.push('-debug');
return {
command: 'java',
commandArgs: args,
Expand Down

0 comments on commit 346055d

Please sign in to comment.