Skip to content

[🐛 Bug]: org.openqa.selenium.remote.ShadowRoot is missing .hashCode / .equals #13326

Closed
@joerg1985

Description

@joerg1985

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

N/A

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions