Forcing test server to stop on shutdown.
@@ -98,6 +98,8 @@ public OutOfProcessSeleniumServer start(String... extraFlags) throws IOException
throw new RuntimeException(e);
}
+ Runtime.getRuntime().addShutdownHook(new Thread(this::stop));
+
return this;
}
