Errata

Hands-On Selenium WebDriver with Java

Errata for Hands-On Selenium WebDriver with Java

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page Pg. 77
Example 3-15, bullet point 2

Bullet point 2 states: "We specify the relative locator type, which will be by tag name the input."

There is a typo in "will be by tag name the input." Most likely should be, "will be by the tag name input," or simply "will be by tag name input."

Kevin J  Oct 14, 2022 
PDF Page Pg. 77
Example 3-15, bullet point 3

Example 3-15, bullet point 3 states: "We use a relative locator to find a web element (which should be an input filed) above the original web element (i.e., a link)."

In the parentheses, "filed" should likely be "field."

Kevin J  Oct 14, 2022 
PDF Page Pg. 38
Second bullet point at the top of page

The second bullet point states, "@BeforeClass is executed once after all tests."

"@BeforeClass" should be "@AfterClass," in this instance.

Kevin J  Oct 14, 2022 
PDF Page Pg. 232
1st paragraph

The page states: "Utilizing a design pattern like POM can help reduce code duplication and enhance maintainability issues."

The last part of this sentence is slightly unclear. Seems like it should read either, "can help reduce code duplication and maintainability issues," or "can help reduce code duplication and enhance maintainability."

Kevin J  Oct 18, 2022 
O'Reilly learning platform Page CH3. Webdriver Fundamentals
Compund Locators

ByAll(By... bys)

It seeks elements that match a number of location strategies (following an *and* logic condition for these locators).

This should be "or" logic instead.

Megha Bassi  Jan 10, 2024 
Printed Page 79
4th footnote

We want to take the left arrow from the monthElement, but for some reason we use .toRightOf(monthElement)
RelativeLocator.with(By.tagName("th")).toRightOf(monthElement));
It is a bit confusing that we write here not .toLeftOf() because the left arrow is on the left.

(I looked at an example in the documentation where an example with two buttons, and the cancel button is taken to the left of the submit button).

And for a test I checked the example from the book with .toLeftOf() and received an error message "NoSuchElementException", that is also interesting because I can't figure out how to get the right arrow in that case.

Anonymous  Nov 29, 2022