Package org.htmlunit
Interface PromptHandler
- All Superinterfaces:
Serializable
A handler for JavaScript window.prompt(). Prompts are triggered when the JavaScript
method Window.prompt() is called.
-
Method Summary
Modifier and TypeMethodDescriptionhandlePrompt(Page page, String message, String defaultValue) Handle a call to Window.prompt() for the given page.
-
Method Details
-
handlePrompt
Handle a call to Window.prompt() for the given page.- Parameters:
page- the page on which the prompt occurredmessage- the message in the promptdefaultValue- the default value in the prompt- Returns:
- the value typed in or
nullif the user pressedcancel
-