 (defn click
   ([node] (click @current-automation node))
   ([{c :connection :as ctx} node]
-   (println "NÄKYYKÖS " (visible ctx node))
+   (visible ctx node)
    (let [{:keys [x y]} (scroll-into-view ctx node)
          event {:x x :y y :button "left" :click-count 1}]
      (input/dispatch-mouse-event c (assoc event :type "mousePressed"))

                                " var r = this.getBoundingClientRect(); "
                                " return {x: r.left + r.width/2, y: r.top + r.height/2}; "
                                "}")]
     (println "SCROLLED " ret)
     {:x (Math/round (double x))
      :y (Math/round (double y))})))


            [clj-chrome-devtools.commands.page :as page]
            [clj-chrome-devtools.commands.input :as input]
            [clj-chrome-devtools.commands.runtime :as runtime]
            [clj-chrome-devtools.commands.network :as network]
            [clj-chrome-devtools.events :as events]
            [clj-chrome-devtools.impl.connection :as connection]
            [clojure.core.async :as async :refer [go-loop go <!! <!]]
