Public Vars

Back

el->ref (clj)

(source)

function

(el->ref el)
Return map representing an element reference for WebDriver. The magic `:element-` constant in source is taken from the [WebDriver Spec](https://www.w3.org/TR/webdriver/#elements). Passing the element reference map to `js-execute` automatically expands it into a DOM node. For example: ```Clojure ;; returns UUID string for the element (def el (query driver :button-ok)) ;; the first argument will the an Element instance. (js-execute driver "arguments[0].scrollIntoView()", (el->ref el)) ```

Examples