Skip to content

GridElement.getShadowRoot() fails with UnsupportedOperationException #1891

@mvysny

Description

@mvysny

I need to search for elements with specific class name within the Grid. I would like to leverage existing API and call something like gridElement.getShadowRoot().findElements(By.className(styleClass)), but that unfortunately fails with:

Caused by: java.lang.UnsupportedOperationException: getShadowRoot
	at org.openqa.selenium.WebElement.getShadowRoot(WebElement.java:280)

Since Grid does have a ShadowDOM, it would be good for GridElement.getShadowRoot() to work properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions