             [etaoin.api :refer :all])
   (:import javax.imageio.ImageIO))
 
-;; (defmacro with-tmp-file [prefix suffix bind & body]
-;;   `(let [tmp# (java.io.File/createTempFile ~prefix ~suffix)
-;;          ~bind (.getAbsolutePath tmp#)]
-;;      (try
-;;        ~@body
-;;        (finally
-;;          (.delete tmp#)))))
+(defmacro with-tmp-file [prefix suffix bind & body]
+  `(let [tmp# (java.io.File/createTempFile ~prefix ~suffix)
+         ~bind (.getAbsolutePath tmp#)]
+     (try
+       ~@body
+       (finally
+         (.delete tmp#)))))
 
 (defn numeric? [val]
   (or (instance? Double val)

;;                (is (= innerHTML "<div>Inner HTML</div>"))
;;                (is (= tagName "DIV")))))

;; (deftest test-screenshot
;;   (with-tmp-file "screenshot" ".png" path
;;     (screenshot path)
;;     (-> path
;;         io/file
;;         ImageIO/read
;;         is)))

;; (deftest test-js-execute
;;   (testing "simple result"

;;     (with-cookies cookies
;;       (is (= cookies [])))))

(deftest test-page-source
  (let [src (get-source *driver*)]
    (when-firefox *driver*
      (is (str/starts-with? src "<html><head>")))
    (skip-firefox *driver*
     (is (str/starts-with? src "<!DOCTYPE html>")))))

;; (deftest test-element-properties
;;   (when-firefox
