Going headless seems to be all the rage these days, so let's have a look at how we can add GhostDriver into the mix. We already have pretty much all of the code we need, so this is just going to be a few minor tweaks. Let's start off by updating our POM to bring in a dependency on GhostDriver:
<dependency> <groupId>com.codeborne</groupId> <artifactId>phantomjsdriver</artifactId> <version>1.2.1</version>
</dependency>
GhostDriver depends upon PhantomJS. This is another binary that most people will not have by default, but that's ne; the driver-binary-downloader plugin can get it for us.
Comments
0 comments
Please sign in to leave a comment.