   (def el (query driver :button-ok))
 
   ;; the first argument will the an Element instance.
-  (js-execute driver \"arguments[0].scrollIntoView()\", (el-to-js el))
+  (js-execute driver \"arguments[0].scrollIntoView()\", (el->ref el))
   "
   [el]
   {:ELEMENT el

   (scroll-by driver (- offset) 0))
  ([driver]
   (scroll-right driver scroll-offset)))

;;
;; logs

;; Javascript
;;

(defn el->ref
  "Turns machinery-wise element ID into an object
  that Javascript use to reference existing DOM element.

