This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-29
Channels
- # adventofcode (9)
- # announcements (2)
- # aws (78)
- # babashka (55)
- # beginners (97)
- # biff (9)
- # calva (11)
- # cherry (2)
- # cider (8)
- # clerk (7)
- # clj-kondo (6)
- # clj-on-windows (4)
- # clojure (213)
- # clojure-austin (6)
- # clojure-europe (63)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-spec (10)
- # clojure-uk (1)
- # clojurescript (14)
- # clr (2)
- # community-development (3)
- # conjure (14)
- # datomic (2)
- # deps-new (5)
- # dev-tooling (10)
- # editors (3)
- # emacs (3)
- # etaoin (19)
- # events (4)
- # fulcro (71)
- # holy-lambda (20)
- # java (3)
- # jobs (2)
- # leiningen (4)
- # lsp (24)
- # malli (15)
- # membrane (107)
- # music (1)
- # off-topic (29)
- # pedestal (4)
- # polylith (1)
- # portal (2)
- # rdf (5)
- # releases (7)
- # scittle (5)
- # shadow-cljs (8)
- # tools-build (15)
- # tools-deps (6)
- # xtdb (13)
Anyone seeing this issue when starting a driver? ; Execution error (IllegalArgumentException) at etaoin.api/wait (api.clj:1854). Here’s a repl transcript. Using chrome 107 and its driver and etaoin 1.0.38
clj꞉user꞉> (require '[etaoin.api :as e])
nil
clj꞉user꞉> (e/chrome {:headless false})
; Execution error (IllegalArgumentException) at etaoin.api/wait (api.clj:1854).
; No matching method sleep found taking 1 args
clj꞉user꞉>
stacktrace
clojure.lang.Reflector/invokeMatchingMethod (Reflector.java:154)
clojure.lang.Reflector/invokeStaticMethod (Reflector.java:332)
etaoin.api/wait (api.clj:1854)
etaoin.api/wait (api.clj:1849)
etaoin.api/wait-predicate (api.clj:1899)
etaoin.api/wait-predicate (api.clj:1870)
This, is the 3rd ping on this issue, so I should really get around to addressing in etaoin.
I hit this problem just yesterday, a (big) hack around it for now (if you're just looking to do something quick) is just to redefine wait in the api ns then jump back to your ns, ie:
(in-ns 'etaoin.api)
(defn wait
"Sleep for `seconds`."
(#_{:clj-kondo/ignore [:unused-binding]} [driver seconds]
(wait seconds))
([seconds]
(Thread/sleep ^long (* seconds 1000))))
(in-ns 'your.ns)