Package org.htmlunit
Interface ConfirmHandler
- All Superinterfaces:
Serializable
A handler for the JavaScript function
window.confirm(). Confirms
are triggered when the JavaScript function window.confirm() is invoked.-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleConfirm(Page page, String message) Handles a confirm for the specified page.
-
Method Details
-
handleConfirm
Handles a confirm for the specified page.- Parameters:
page- the page on which the confirm occurredmessage- the message in the confirm- Returns:
trueif we are simulating clicking the OK button,falseif we are simulating clicking the Cancel button
-