Skip to content

Commit af905aa

Browse files
committed
Document HtmlUnit & WebDriver deps in reference manual
This commit improves the documentation in the reference manual for the HtmlUnit & Selenium WebDriver integration in the Spring MVC Test framework by mentioning the group and artifact IDs required for this functionality. Issue: SPR-13299
1 parent 9b1178c commit af905aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/asciidoc/testing.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4382,6 +4382,10 @@ want to use the raw HtmlUnit libraries.
43824382
[[spring-mvc-test-server-htmlunit-mah-setup]]
43834383
====== MockMvc and HtmlUnit Setup
43844384

4385+
First, make sure that you have included a test dependency on `net.sourceforge.htmlunit:htmlunit`.
4386+
In order to use HtmlUnit with Apache HttpComponents 4.5+, you will need to use HtmlUnit
4387+
2.18 or higher.
4388+
43854389
We can easily create an HtmlUnit `WebClient` that integrates with `MockMvc` using the
43864390
`MockMvcWebClientBuilder` as follows.
43874391

@@ -4642,6 +4646,9 @@ following sections to make this pattern much easier to implement.
46424646
[[spring-mvc-test-server-htmlunit-webdriver-setup]]
46434647
====== MockMvc and WebDriver Setup
46444648

4649+
To use Selenium WebDriver with the Spring MVC Test framework, make sure that your project
4650+
includes a test dependency on `org.seleniumhq.selenium:selenium-htmlunit-driver`.
4651+
46454652
We can easily create a Selenium `WebDriver` that integrates with `MockMvc` using the
46464653
`MockMvcHtmlUnitDriverBuilder` as follows.
46474654

0 commit comments

Comments
 (0)