@@ -12,8 +12,8 @@ We can already use HtmlUnit and MockMvc, so why would we want to use WebDriver?
1212Selenium WebDriver provides a very elegant API that lets us easily organize our code. To
1313better show how it works, we explore an example in this section.
1414
15- NOTE: Despite being a part of https://www.selenium.dev/documentation/[Selenium], WebDriver does not
16- require a Selenium Server to run your tests.
15+ NOTE: Despite being a part of https://www.selenium.dev/documentation/[Selenium],
16+ WebDriver does not require a Selenium Server to run your tests.
1717
1818Suppose we need to ensure that a message is created properly. The tests involve finding
1919the HTML form input elements, filling them out, and making various assertions.
@@ -308,7 +308,7 @@ interested. These are of type `WebElement`. WebDriver's
308308https://github.com/SeleniumHQ/selenium/wiki/PageFactory[`PageFactory`] lets us remove a
309309lot of code from the HtmlUnit version of `CreateMessagePage` by automatically resolving
310310each `WebElement`. The
311- https://seleniumhq.github.io /selenium/docs/api/java/org/openqa/selenium/support/PageFactory.html#initElements-org.openqa.selenium.WebDriver-java.lang.Class-[`PageFactory#initElements(WebDriver,Class<T>)`]
311+ https://www.selenium.dev /selenium/docs/api/java/org/openqa/selenium/support/PageFactory.html#initElements-org.openqa.selenium.WebDriver-java.lang.Class-[`PageFactory#initElements(WebDriver,Class<T>)`]
312312method automatically resolves each `WebElement` by using the field name and looking it up
313313by the `id` or `name` of the element within the HTML page.
314314<3> We can use the
@@ -352,7 +352,7 @@ interested. These are of type `WebElement`. WebDriver's
352352https://github.com/SeleniumHQ/selenium/wiki/PageFactory[`PageFactory`] lets us remove a
353353lot of code from the HtmlUnit version of `CreateMessagePage` by automatically resolving
354354each `WebElement`. The
355- https://seleniumhq.github.io /selenium/docs/api/java/org/openqa/selenium/support/PageFactory.html#initElements-org.openqa.selenium.WebDriver-java.lang.Class-[`PageFactory#initElements(WebDriver,Class<T>)`]
355+ https://www.selenium.dev /selenium/docs/api/java/org/openqa/selenium/support/PageFactory.html#initElements-org.openqa.selenium.WebDriver-java.lang.Class-[`PageFactory#initElements(WebDriver,Class<T>)`]
356356method automatically resolves each `WebElement` by using the field name and looking it up
357357by the `id` or `name` of the element within the HTML page.
358358<3> We can use the
0 commit comments