Skip to content

Commit cebcd61

Browse files
authored
Update PageComponents.md
1 parent bb08002 commit cebcd61

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/PageComponents.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,14 @@ public void testShadowRootByLocator() {
127127
}
128128
...
129129

130-
Take note of the `try` block in this example. If **Selenium Foundation** is unable to acquire the shadow root reference from the selected host element, it throws a **`ShadowRootContextException`**. This indicates either that the context element is not a shadow host, or that the attached shadow DOM is closed. In this code, which was extracted from the **Selenium Foundation** unit tests, the exception is caught and wrapped to harmlessly flag the test as "skipped", because the **HtmlUnit** browser used by the unit tests doesn't provide the shadow DOM feature.
130+
Take note of the `try` block in this example. If **Selenium Foundation** is
131+
unable to acquire the shadow root reference from the selected host element,
132+
it throws a **`ShadowRootContextException`**. This indicates either that
133+
the context element is not a shadow host, or that the attached shadow DOM is
134+
closed. In this code, which was extracted from the **Selenium Foundation**
135+
unit tests, the exception is caught and wrapped to harmlessly flag the test
136+
as "skipped", because the **HtmlUnit** browser used by the unit tests doesn't
137+
provide the shadow DOM feature.
131138
```
132139
133140
# Component Nesting and Aggregation

0 commit comments

Comments
 (0)