Example app demonstrating Percy's Java Selenium integration.
It requires Java 8 and Maven >3.6.
The Selenium tests use ChromeDriver, which you need to install separately for your system. On Mac OS, you can use Homebrew:
$ brew tap homebrew/cask && brew cask install chromedriver
For other systems, see: https://sites.google.com/a/chromium.org/chromedriver/.
Building and running the app
To compile and build a jar containing our app:
$ mvn package
To run the server:
$ java -cp target/example-percy-java-selenium-1.0-SNAPSHOT.jar io.percy.examplepercyjavaselenium.App
Then visit http://localhost:8000 to see the app in action.
To run the tests:
$ mvn test
To install the Percy agent for this project, run
$ npm install
To run Percy snapshots, first set the
PERCY_TOKEN environment variable, and then run: