[🐛 Bug]: ms:edgeOptions extensions invalid format - needs list but got object #15738
Labels
A-needs-triaging
A Selenium member will evaluate this soon!
B-grid
Everything grid and server related
C-java
Java Bindings
D-edge
I-defect
Something is not working as intended
OS-windows
Uh oh!
There was an error while loading. Please reload this page.
Description
I am currently running a Selenium Hub on Docker in OpenShift in version
4.32.0
. For the Nodes I am using Windows 11 Agents, that connect with java using the jar obtained fromhttps://github.com/SeleniumHQ/selenium/releases/download/selenium-4.32.0/selenium-server-4.32.0.jar
. The client configuration in form of a.toml
looks like this.For the most part, basic tests etc everything works fine for firefox and edge. In one of our use cases we need to adapt the
ms:edgeOptions
to include another property, e.g.--use-fake-ui-for-media-stream
. These additional options are passed in the java test as follows.or
When executing the test, the capabilities are correctly displayed as
However, I do get the error that
class java.util.LinkedHashMap cannot be cast to class java.util.List
. Looking into the log of the node i can see that theextensions
attribute is somehow converted into an object{}
I also tried converting the node TOML into a JSON, with little to no success, the result stays the same, with a partly different error message. The JSON looks as follows.
The problem i have here is that the
registrationSecret
, as well as thedetectDrivers
andseleniumManager
do not work inside the JSON, seemingly no matter where I put them. When I pass them as options to the node start command, they work.The other, similar error I encountered is
Could not start a new session. Response code 400. Message: invalid argument: entry 0 of 'firstMatch' is invalid\nfrom invalid argument: cannot parse capability: ms:edgeOptions\nfrom invalid argument: cannot parse extensions\nfrom invalid argument: must be a list
The node itself registers correctly. For Edge:
The status endpoint returns the expected JSON.
The Nodes are Windows11, the Java test is run from Mac 15.4.1.
Reproducible Code
The text was updated successfully, but these errors were encountered: