@Deprecated
    public synchronized RemoteWebDriver getWebDriver() {
        if (driver == null) {
            if (capabilities == null) {
                logger()
                    .warn(
                        "No capabilities provided - this will cause an exception in future versions. Falling back to ChromeOptions"
                    );
                capabilities = new ChromeOptions();
            }

            driver =
                Unreliables.retryUntilSuccess(
                    30,
                    TimeUnit.SECONDS,
                    () -> {
                        return Timeouts.getWithTimeout(
                            10,
                            TimeUnit.SECONDS,
                            () -> {
                                return new RemoteWebDriver(getSeleniumAddress(), capabilities);
                            }
                        );
                    }
                );
        }
        return driver;
    }
Obtain a RemoteWebDriver instance that is bound to an instance of the browser running inside a new container.
<p>
All containers and drivers will be automatically shut down after the test method finishes (if used as a @Rule) or the test
class (if used as a @ClassRule)

@return a new Remote Web Driver instance
@deprecated use {@link #getSeleniumAddress()} instead
modules/selenium/src/main/java/org/testcontainers/containers/BrowserWebDriverContainer.java