Skip to content

Commit 8b45f02

Browse files
authored
[java] Normalising handling of Shadow Dom elements. (#16149)
This applies the same logic we already apply for findElement and findElements, as `id`, `name`, and `className` are not W3C locators. Fixes #15961
1 parent 8389091 commit 8b45f02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/src/org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ public W3CHttpCommandCodec() {
175175
case FIND_CHILD_ELEMENTS:
176176
case FIND_ELEMENT:
177177
case FIND_ELEMENTS:
178+
case FIND_ELEMENT_FROM_SHADOW_ROOT:
179+
case FIND_ELEMENTS_FROM_SHADOW_ROOT:
178180
String using = (String) parameters.get("using");
179181
Object value = parameters.get("value");
180182

0 commit comments

Comments
 (0)