-
-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Description
Expected Behavior
opts.javaArgs should be placed between java and -jar.
Current Behavior
opts.javaArgs are passed after -jar fsPaths.selenium.installPath.
I guess the order of args.push in lib/start.js has been changed from v7.1.0.
Steps to Reproduce
Provide an unambiguous set of steps to reproduce this bug. Include commands that you used
in the shell, or snippets of how you are using the JavaScript API.
- Set up WDIO test runner.
- Set
servicesin wdio.conf.js as below:
[
['selenium-standalone', {
args: {
javaArgs: ['-Djava.util.logging.config.file=logging.properties']
}]
]
- Start the test runner.
Logs
2021-10-27T08:22:08.077Z ERROR @wdio/selenium-standalone-service: Error: Selenium exited before it could start with code 1
Stdout:
Stderr: Exception in thread "main" com.beust.jcommander.ParameterException: Was passed main parameter '-Djava.util.logging.config.file=logging.properties' but no main parameter was defined in your arg class
at com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:936)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:752)
at com.beust.jcommander.JCommander.parse(JCommander.java:340)
at com.beust.jcommander.JCommander.parse(JCommander.java:319)
at org.openqa.grid.selenium.GridLauncherV3.parse(GridLauncherV3.java:218)
at org.openqa.grid.selenium.GridLauncherV3.lambda$buildLaunchers$3(GridLauncherV3.java:241)
at org.openqa.grid.selenium.GridLauncherV3.lambda$launch$0(GridLauncherV3.java:86)
at java.base/java.util.Optional.map(Optional.java:265)
at org.openqa.grid.selenium.GridLauncherV3.launch(GridLauncherV3.java:86)
at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:70)
Your Environment
- Version of
selenium-standalonethat you are using:"selenium-standalone": "^8.0.3"in @wdio/selenium-standalone-service - Is there another tool calling
selenium-standaloneon your behalf:"@wdio/selenium-standalone-service": "^7.16.3" - System/platform: Windows 10
- Other details that might be important:
"@wdio/cli": "^7.16.3",
"@wdio/cucumber-framework": "^7.16.3",
"@wdio/local-runner": "^7.16.3",
"@wdio/reporter": "^7.16.3",
"@wdio/selenium-standalone-service": "^7.16.3"
Metadata
Metadata
Assignees
Labels
No labels