clj-chrome-devtools icon indicating copy to clipboard operation
clj-chrome-devtools copied to clipboard

Can't connect to remote debugging port when launched via `headless? false`

Open oxalorg opened this issue 3 years ago • 0 comments

Hey all. Just started exploring this library, thanks for all the awesome work!

So this by alone does not work

(def conn (launcher/launch-automation {:headless? false}))

and results in the following exception after 30s

Execution error (ExceptionInfo) at clj-chrome-devtools.impl.connection/wait-for-remote-debugging-port (connection.clj:74).
Chrome remote debugging port not up

The only workaround I found for this was to first launch with headless? true and then launch another automation with headless? false

So this works properly

;; need this hack to run in GUI
(launcher/launch-automation {:headless? true})
(def conn (launcher/launch-automation {:headless? false}))

oxalorg avatar Feb 02 '22 17:02 oxalorg