concept JavaScript alert in category java

This is an excerpt from Manning's book JUnit in Action.
The following example focuses on the HtmlUnit mechanics of driving a form. First, we create a simple page to display a form with an input field and submit button. We include form validation via JavaScript alerts.

This is an excerpt from Manning's book JUnit in Action, Second Edition.
The following example focuses on the HtmlUnit mechanics of driving a form. First, we create a simple page to display a form with an input field and Submit button. We include form validation via JavaScript alerts in listing 12.5 as a second path to test. The section “Testing JavaScript alerts” describes this in more detail.
To deal with JavaScript alert and confirm calls, you can provide the framework with callbacks routines. We explore these next.