Getting started with Elm-Webdriver

Today I tried to add elm-webdriver to my elm project (on Ubuntu 16.04). It wasn’t as easy as the instructions make out. So I updated the instructions.

1. Missing dependencies

$ npm install elm-webdriver

Went okay, and<

$ node_modules/.bin/elm-webdriver init

appeared to work.But when I came to run the tests from the newly created `webdriver-tests` director


The tests would not compile due to missing dependencies. I added the missing dependencies to `webdriver-tests/elm-package.json`, and then ran `elm package install` to install them in the local `elm-stuff`.

"dependencies": {
"elm-community/elm-test": "3.0.0 &lt;= v &lt; 4.0.0",
"elm-lang/core": "5.1.1 &lt;= v &lt; 6.0.0"

2. Missing gecko web driver

As predicted, I needed to install the standalone selenium server which I downloaded and ran with:

java -jar selenium-server-standalone-3.1.0.jar

But when the tests ran, selenium server complained:

11:22:36.772 WARN - Exception: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see The latest version can be downloaded from https:

So I downloaded the gecko driver and told selenium where to find it with the system property.

java -Dwebdriver.gecko.driver="<path-to-my-project-bin>/geckodriver" -jar selenium-server-standalone-3.1.0.jar


After discussion on twitter, pull request to fix.

Add your comment

D( :D :o :? B) #8) ;( 0) 8) :7
X) :| 3) :( ;7 8o :) :P ;) :]