Fork me on GitHub
#etaoin
<
2024-02-07
>
mmer17:02:09

Hi I am running a test against chrome on a headless redhat set up. I am seeing: "unknown error: net::ERR_CONNECTION_REFUSED Any ideas? I ran this with a headed system OK.

mmer17:02:34

(let [driver (e/chrome {:headless true :args ["--no-sandbox"]})
                                        url (str "https://" (:server options) "/auth/login")]
                                    (doto driver
                                      (e/go  url))

lread20:02:05

@U4C3ZU6KX, can't type much as I am still recovering from an injury. Here is what I tried, it worked here:

(require '[etaoin.api :as e])

(def driver (e/chrome {:headless true :args ["--no-sandbox"]}))

(e/go driver "")

(e/get-title driver)
;; => "Clojure"

(e/quit driver)
One thing to check is that you are using latest chrome, chromedriver and etaoin.

mmer13:02:28

Thanks, did not manage to overcome, but moved on to platform where it is working.

mmer13:02:48

Sorry for not replying that I had moved on.

👍 1