etaoin

igrishaev 2017-10-21T16:17:58.000078Z

only with js script, something like document.findById('content').scrollIntoView()

igrishaev 2017-10-21T16:19:07.000045Z

as far as I know, the official WebDriver protocol does not ship any functionality for that.

borkdude 2017-10-21T18:09:00.000025Z

Thanks 🙂

borkdude 2017-10-21T18:10:27.000052Z

Do you have any experience with remote controlling a headless chrome in Docker? Right now we execute our tests via a boot-clj script. Boot is installed on the server, but we might not want to install headless chrome directly on the server

borkdude 2017-10-21T18:10:58.000049Z

I might have to build a Docker image with java 8, boot-clj, chromedriver and headless chrome to make this work

borkdude 2017-10-21T18:27:13.000051Z

Maybe I can only run chromedriver and chrome in Docker? https://hub.docker.com/r/robcherry/docker-chromedriver/

borkdude 2017-10-21T19:11:04.000022Z

Yup, works:

docker run --name chromedriver -p 4444:4444 -e CHROMEDRIVER_WHITELISTED_IPS=‘’ --cap-add=SYS_ADMIN robcherry/docker-chromedriver:latest

(def chrome
    (-> (eta/create-driver :headless {:host “127.0.0.1” :port 4444})
        (eta/connect-driver {:host “127.0.0.1" :port 4444})))

igrishaev 2017-10-21T20:05:58.000011Z

I’ve tried headless chrome docker in docker several times. It works, but its behaviour becomes strange. Sometimes, it cannot click on links for example

igrishaev 2017-10-21T20:06:57.000060Z

It worth adding it into readme I believe