Skip to content

Commit 8260e6b

Browse files
authored
Update PageComponents.md
1 parent cebcd61 commit 8260e6b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/PageComponents.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,10 @@ public void testShadowRootByLocator() {
126126
}
127127
}
128128
...
129-
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.
138129
```
139130

131+
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.
132+
140133
# Component Nesting and Aggregation
141134

142135
When modeling a web application, it's often useful to represent groups of associated elements as **page components**. It's quite common for a page component to be composed of one or more sub-components (e.g. - shipping address and delivery method in a shipping information section). You'll also encounter pages that contain multiple instances of particular component (e.g. - item tiles on a search results page).

0 commit comments

Comments
 (0)