Skip to content

Commit

Permalink
Fix indentation for shadow root examples in User Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
dgr committed Jul 16, 2024
1 parent cc7df60 commit 88067de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/01-user-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -941,15 +941,15 @@ The `query-shadow-root-el` and `query-all-shadow-root-el` allow you to specify t
;; => "I'm in the shadow DOM"
(->> (e/query-all-shadow-root driver {:id "shadow-root-host"} {:css "span"})
(map #(e/get-element-text-el driver %)))
(map #(e/get-element-text-el driver %)))
;; => ("I'm in the shadow DOM" "I'm also in the shadow DOM")
(def shadow-root (e/get-element-shadow-root-el driver host))
(e/get-element-text-el driver (e/query-shadow-root-el driver shadow-root {:css "#in-shadow"}))
;; => "I'm in the shadow DOM"
(->> (e/query-all-shadow-root-el driver shadow-root {:css "span"})
(map #(e/get-element-text-el driver %)))
(map #(e/get-element-text-el driver %)))
;; > ("I'm in the shadow DOM" "I'm also in the shadow DOM")
----

Expand Down

0 comments on commit 88067de

Please sign in to comment.