<properties>
<java.version>1.8</java.version>
+ <testcontainers.version>1.12.4</testcontainers.version>
</properties>
<dependencies>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.seleniumhq.selenium</groupId>
+ <artifactId>selenium-remote-driver</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.testcontainers</groupId>
+ <artifactId>selenium</artifactId>
+ <version>${testcontainers.version}</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
--- /dev/null
+package de.juplo.demo;
+
+
+import org.junit.jupiter.api.extension.BeforeEachCallback;
+import org.junit.jupiter.api.extension.ExtensionContext;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.remote.DesiredCapabilities;
+import org.testcontainers.containers.BrowserWebDriverContainer;
+
+
+/**
+ * An Extension for JUnit Jupiter, that starts a {@link WebDriver} with the
+ * help of
+ * {@link https://www.testcontainers.org/modules/webdriver_containers/ Testcontainers}.
+ * @author Kai Moritz
+ */
+public class WebDriverExtension implements BeforeEachCallback
+{
+ BrowserWebDriverContainer chrome;
+
+
+ @Override
+ public void beforeEach(ExtensionContext context) throws Exception
+ {
+ chrome = new BrowserWebDriverContainer().withCapabilities(DesiredCapabilities.chrome());
+ }
+}