Anyone using webdriver with electron?


I’m intrigued about the possibility of functional testing Electron with webdriver. The example confuses me though - it has you navigating Electron to an external site, which seems useless as PhantomJS exists.

For a productive testing workflow you’d want to start electron pointing at your app directory. I’ve got it running within webdriver, but can’t pass through the ‘app’ directory via the args option: it’s prefixed with -- and ignored. A possible workaround - wrapping the binary in a stub file that manually adds the path - causes the driver to crash.


I’ve been using it recently. To get around the argument issue, I just symlinked the app directory to $ELECTRON_HOME/resources/app