-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
B-gridEverything grid and server relatedEverything grid and server related
Description
🐛 Bug Report
I want to start a Grid node with a single type of browser and a fixed number of maximum sessions/instances, for example 7. I can do it fine with Selenium 3 like this:
java -Dwebdriver.gecko.driver=drivers\geckodriver.exe -jar selenium-server-standalone-3.14.0.jar -role node -maxSession 7 -browser browserName="firefox",maxInstances=7
But I couldn't achieve it with Selenium 4 using a similar (per my understanding of the documentation) command:
java -Dwebdriver.gecko.driver=drivers\geckodriver.exe -jar selenium-server-4.0.0-beta-2.jar node --detect-drivers false --max-sessions 7 --driver-configuration name="Firefox" max-sessions=7 stereotype={\"browserName\":\"firefox\"}
To Reproduce
- Start the hub using
java -jar selenium-server-4.0.0-beta-2.jar hub - Run the above command to start the node
Expected behavior
A Firefox node that can run up to 7 Selenium tests in parallel.
Actual behavior
I see that Firefox was added 2x5 times instead of 7 in the log:
09:11:07.748 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
09:11:07.764 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
09:11:08.273 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://*:4442 and tcp://*:4443
09:11:08.422 INFO [UnboundZmqEventBus.<init>] - Sockets created
09:11:08.538 INFO [UnboundZmqEventBus.<init>] - Event bus ready
09:11:08.943 INFO [NodeServer.createHandlers] - Reporting self as: http://x.x.x.x:5555
09:11:09.347 INFO [NodeOptions.report] - Adding Firefox for {"browserName": "firefox","platformName": "XP"} 5 times
09:11:09.350 INFO [NodeOptions.report] - Adding Firefox for {"browserName": "firefox","platformName": "XP"} 5 times
09:11:09.420 INFO [Node.<init>] - Binding additional locator mechanisms: name, id
09:11:11.615 INFO [NodeServer$1.start] - Starting registration process for node id 36a5fd26-da4e-4753-9135-e1f689c6f5e4
09:11:11.620 INFO [NodeServer.execute] - Started Selenium node 4.0.0-beta-2 (revision Unknown): http://x.x.x.x:5555
09:11:11.673 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
09:11:12.362 INFO [NodeServer.lambda$createHandlers$1] - Node has been added
I also see "Stereotypes: 10" and "Max. Concurrency: 4" in the Grid web console.
Environment
OS: Windows (any version)
Browser: any
Browser version: any
Browser Driver version: latest
Language Bindings version: 4.0.0-beta-2
Selenium Grid version (if applicable): 4.0.0-beta-2
Metadata
Metadata
Assignees
Labels
B-gridEverything grid and server relatedEverything grid and server related