Skip to content

Unable to set SE_OPTS with 3.5.3 images. Fails with a ParameterException. #574

Closed
@testphreak

Description

@testphreak

Meta -

Image(s):
hub, node-chrome, node-firefox
Docker-Selenium Image Version(s):
3.5.3, 3.5.3-boron
OS:
MacOS Sierra, Ubuntu 16.04

Expected Behavior -

I want to set SE_OPTS with 3.5.3. For example: -debug on hub and nodes. Setting SE_OPTS works with 3.4.0 images.

Actual Behavior -

Unable to set SE_OPTS. Hub and Node fail to star with the error below.

Command

docker run -d -p 4444:4444 -e GRID_MAX_SESSION=5 -e SE_OPTS="-debug true" --name selenium-hub selenium/hub:3.5.3

Logs

starting selenium hub with configuration:
{
  "host": null,
  "port": 4444,
  "role": "hub",
  "maxSession": 5,
  "newSessionWaitTimeout": -1,
  "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
  "throwOnCapabilityNotPresent": true,
  "jettyMaxThreads": -1,
  "cleanUpCycle": 5000,
  "browserTimeout": 0,
  "timeout": 30,
  "debug": false
}
appending selenium options: -debug true
Exception in thread "main" com.beust.jcommander.ParameterException: Was passed main parameter 'true' but no main parameter was defined
	at com.beust.jcommander.JCommander.getMainParameter(JCommander.java:914)
	at com.beust.jcommander.JCommander.parseValues(JCommander.java:759)
	at com.beust.jcommander.JCommander.parse(JCommander.java:282)
	at com.beust.jcommander.JCommander.parse(JCommander.java:265)
	at com.beust.jcommander.JCommander.<init>(JCommander.java:210)
	at org.openqa.grid.selenium.GridLauncherV3$2.setConfiguration(GridLauncherV3.java:245)
	at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.java:155)
	at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:75)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions