Public Vars

Back

query-from-shadow-root (clj)

(source)

function

(query-from-shadow-root driver q shadow-q)
First, conducts a standard search (as if by [[query]]) for an element with a shadow root. Then, from that shadow root element, conducts a search of the shadow DOM for the first element matching `shadow-q`. For details on `q`, see [[query]]. The `shadow-q` parameter is similar to the `q` parameter of the [[query]] function, but some drivers may limit it to specific formats (e.g., CSS). See [this note](/doc/01-user-guide.adoc#shadow-root-browser-limitations) for more information. Note that `shadow-q` does not support `query`'s `:active` keyword.

Examples