Playing with selenium, java, docker and standalone selenium docker images
- docker
- docker-compose
- Unix/Windows OS
- (optional) read this blog
a) git clone https://github.com/paulbrodner/headless-browser-testing b) start Selenium Grid with Firefox in a docker container
$ cd headless-browser-testing
$ ./start-selenium.sh #this will run in the background the selenium grid
You can see the grid running in background
$ docker ps
c) run the test
$ mvn test
This will run the JUnit test that will
- open (remotely in the container) the Google page
- takes a screenshots and saves it in
target
folder - assert the title of the page is correct