The only auto-configuration class is MockMvcWebDriverAutoConfiguration, that requires HtmlUnit. So this auto-cofiguration only works if both Selenium AND HtmlUnit are used. Prevents misinterpretation that WebDriver can be auto configured without htmlunit.