          :data decode
          (java.io.ByteArrayInputStream.)
          (io/copy (io/file "screenshot.png"))))))
+
+(defn set-attribute
+  ([node attribute-name attribute-value]
+   (set-attribute @current-automation node attribute-name attribute-value))
+  ([{c :connection :as ctx} node attribute-name attribute-value]
+   (dom/set-attribute-value c (merge node {:name attribute-name
+                                           :value attribute-value}))))

     (some #(when (= (:name %) "innerText")
              (-> % :value :value))
           (:result (runtime/get-properties c {:object-id object-id :own-properties false}))))))

(defn screenshot
  ([] (screenshot @current-automation))

            [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 <!! <!]]
