private void retainRecordingIfNeeded(String prefix, boolean succeeded) {
        final boolean shouldRecord;
        switch (recordingMode) {
            case RECORD_ALL:
                shouldRecord = true;
                break;
            case RECORD_FAILING:
                shouldRecord = !succeeded;
                break;
            default:
                shouldRecord = false;
                break;
        }

        if (shouldRecord) {
            File recordingFile = recordingFileFactory.recordingFileForTest(
                vncRecordingDirectory,
                prefix,
                succeeded,
                vncRecordingContainer.getVideoFormat()
            );
            LOGGER.info("Screen recordings for test {} will be stored at: {}", prefix, recordingFile);

            vncRecordingContainer.saveRecordingToFile(recordingFile);
        }
    }
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