Just installed 0.2.4 and when requiring the api namespace, it throws a No Such Var str/includes? - Whats up ?
let me check, probably a macro issue
@laujensen this function is available since Clojure 1.8 https://clojuredocs.org/clojure.string/includes_q
I’ve created an issue: https://github.com/igrishaev/etaoin/issues/101
Which ver works with 1.7?
hm, cannot remember right now. but this str/includes?
was added long ago
I mean, added into the library code.
Not in the 0.2.4 version
could you try 0.2.3 please?
Ive switched to Clojure 1.8, so maybe later
But @igrishaev. Ive loaded it up with the latestest chromedriver, and
(www/with-postmortem browser {}
(www/go browser “<http://www.google.com>“))
Generates a screenshot, but rerunning that command with another website does not generate another screenshot. How might that be?
s/how/why/g
(www/with-postmortem browser {:dir-img “/Users/lau/coding/tigerbyte/resources/screens”}
(www/go browser “<http://www.google.com>“)
(prn (www/has-text? browser “search”)))
true
And it does seem to load the page correctly
@laujensen the with-postmortem
macros generates a screenshot only then exception occurred. In your examples, everything seems to work fine, so none of artifacts should be created. To save a screenshot, just call for (www/screenshot driver "/path/to/file")
Yes sorry, I found it by reading the source. Consider adding it to your readme.md