Package org.htmlunit
Interface ConfirmHandler
-
- All Superinterfaces:
java.io.Serializable
public interface ConfirmHandler extends java.io.SerializableA handler for the JavaScript functionwindow.confirm(). Confirms are triggered when the JavaScript functionwindow.confirm()is invoked.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandleConfirm(Page page, java.lang.String message)Handles a confirm for the specified page.
-
-
-
Method Detail
-
handleConfirm
boolean handleConfirm(Page page, java.lang.String message)
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
-
-