Package org.htmlunit
Interface AlertHandler
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CollectingAlertHandler
A handler for JavaScript alerts. Alerts are triggered when the JavaScript method Window.alert()
is called.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAlert(Page page, String message) Handle an alert for the given page.
-
Method Details
-
handleAlert
Handle an alert for the given page.- Parameters:
page- the page on which the alert occurredmessage- the message in the alert
-