Fork me on GitHub
Steve H22:12:06

Pardon the x-post, didn't realize this thread existed... So, I'm new to Clojure and trying to execute a simple jQuery script using etaoin. The jQuery in the script already works. This is what I have:

(js-execute d "$('#mainmenuli-report').trigger('mouseenter');")
Here's my error:
loaders.core=> (js-execute d "$('#mainmenuli-report').trigger('mouseenter');")
Execution error (ExceptionInfo) at (support.clj:201).
throw+: {:response {:sessionId "95536bb4edb78c51dcbf593d8f8c1325", :status 17, :value {:message "javascript error: 
$ is not defined\n  (Session info: chrome=96.0.4664.110)\n  (Driver info: chromedriver=96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-heads/[email protected]{#947}),platform=Windows NT 10.0.19043 x86_64)"}}, :path "session/95536bb4edb78c51dcbf593d8f8c1325/execute", :payload {:script "$('#mainmenuli-report').trigger('mouseenter');", :args []}, :method :post, :type :etaoin/http-error, :port 35178, :host "", :status 200, :driver {:args ("chromedriver" "--port=35178"), :capabilities {:loggingPrefs {:browser "ALL"}, :chromeOptions {:args ("--window-size=1400,850")}}, :process #object[java.lang.ProcessImpl 0x2ef5c28d "Process[pid=20916, exitValue=\"not exited\"]"], :locator "xpath", :type :chrome, :env nil, :port 35178, :host "", :url "", :session "95536bb4edb78c51dcbf593d8f8c1325"}}
Appreciate any thoughts or workarounds.