Skip to content
This repository was archived by the owner on Jan 4, 2024. It is now read-only.

Commit aa6ac11

Browse files
committed
Describing HelloControllerIT
1 parent 027e868 commit aa6ac11

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ CONTAINER ID IMAGE ... PORTS
4141
I am describing basic setup here. For details, have a look at [HelloControllerIT.java](src/test/java/schulte/markus/seleniumstandalonechromespringboot/controller/HelloControllerIT.java),
4242
which is straight-forward.
4343

44-
Selenium provides a docker-image [selenium/standalone-chrome-debug](https://hub.docker.com/r/selenium/standalone-chrome-debug/).
44+
Selenium provides a docker-image [selenium/standalone-chrome](https://hub.docker.com/r/selenium/standalone-chrome-debug/).
4545
You can use this docker-image within your test by using [Docker Compose JUnit Rule](https://github.com/palantir/docker-compose-rule).
4646
You have to use [selenium-java](http://central.maven.org/maven2/org/seleniumhq/selenium/selenium-java/), of course.
4747
By using [WebDriverManager](https://github.com/bonigarcia/webdrivermanager), there is no need to care for downloading
4848
a [Selenium WebDriver](http://www.seleniumhq.org/docs/03_webdriver.jsp) yourself.
4949

50-
50+
When running [HelloControllerIT.java](src/test/java/schulte/markus/seleniumstandalonechromespringboot/controller/HelloControllerIT.java),
51+
a selenium/standalone-chrome -container is started, while this Spring Boot application is
52+
launched with a random port on localhost. Now in the test, you can use Selenium-RemoteWebDriver to
53+
connect to the running Selenium-Hub within the selenium/standalone-chrome -container.
54+
[Selenium/standalone-chrome-debug](https://hub.docker.com/r/selenium/standalone-chrome-debug/)
55+
docker-images is used here, so you can access VNC on the running container by accessing the published
56+
port 5900.

0 commit comments

Comments
 (0)