What happened?
element.getShadowRoot().equals(element.getShadowRoot()) does evaluate to false, this breaks using ShadowRoot in a Map / Set.
ShadowRoot should implement .equals / .hashCode comparing the driver and the remote id.
How can we reproduce the issue?
`element.getShadowRoot().equals(element.getShadowRoot())`
Relevant log output
Operating System
N/A
Selenium version
4.16.1
What are the browser(s) and version(s) where you see this issue?
N/A
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
N/A
What happened?
element.getShadowRoot().equals(element.getShadowRoot())does evaluate to false, this breaks usingShadowRootin aMap/Set.ShadowRootshould implement .equals / .hashCode comparing the driver and the remote id.How can we reproduce the issue?
Relevant log output
Operating System
N/A
Selenium version
4.16.1
What are the browser(s) and version(s) where you see this issue?
N/A
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
N/A