Hello, I am new to webdriver and was trying to run the examples in the github page. I ran the following to get a repl on my linux machine:
clojure -Sdeps "{:deps {com.bhauman/rebel-readline {:mvn/version \"0.1.4\"} etaoin {:mvn/version \"0.3.3\"}}}" -m rebel-readline.main
Now when I run try to call (firefox)
or (chrome)
to define a driver, it fails
user=> (use 'etaoin.api)
nil
user=> (require '[etaoin.keys :as keys])
nil
user=> (def driv (firefox))
Syntax error (IOException) compiling at (REPL:1:11).
error=2, No such file or directory
user=>
do I need to install anything before I can run those? I am not sure what it is trying to run and why I get "No such file or directory"
I also tried breaking the (firefox)
into the following to get the same error
user=> (def driv (create-driver :firefox))
#'user/driv
user=> driv
#object[clojure.lang.Atom 0x3c1908c8 {:status :ready, :val {:type :firefox, :host "127.0.0.1", :port 4444, :url "<http://127.0.0.1:4444>", :locator "xpath"}}]
user=> (run-driver driv)
Execution error (IOException) at java.lang.UNIXProcess/forkAndExec (UNIXProcess.java:-2).
error=2, No such file or directory
user=>
Any pointers would be much appreciated 🙂
Nevermind, I needed to install geckodriver
package for my distro (duh! 😊)