From 60bc94e1d482904607fe4aad40e151144c497180 Mon Sep 17 00:00:00 2001 From: cdalexndr Date: Thu, 9 Sep 2021 17:21:57 +0300 Subject: [PATCH] Clarify Selenium auto-configuration requires HtmlUnit The auto-configuration 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. See gh-27920 --- .../src/docs/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index 4f0a9fef4f5f..2230f98a92ba 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -7464,7 +7464,7 @@ The following example uses `MockMvc`: TIP: If you need to configure elements of the auto-configuration (for example, when servlet filters should be applied) you can use attributes in the `@AutoConfigureMockMvc` annotation. -If you use HtmlUnit or Selenium, auto-configuration also provides an HtmlUnit `WebClient` bean and/or a Selenium `WebDriver` bean. +If you use HtmlUnit and Selenium, auto-configuration also provides an HtmlUnit `WebClient` bean and/or a Selenium `WebDriver` bean. The following example uses HtmlUnit: [source,java,indent=0]