@Override
        public void initialize(ConfigurableApplicationContext applicationContext) {
            applicationContext.addApplicationListener(
                (ApplicationListener<WebServerInitializedEvent>) event -> {
                    Testcontainers.exposeHostPorts(event.getWebServer().getPort());
                }
            );
        }
Simple example of plain Selenium usage.
examples/selenium-container/src/test/java/SeleniumContainerTest.java