com.gargoylesoftware.htmlunit
Interface PromptHandler
public interface PromptHandler
A handler for JavaScript window.prompt(). Confirms are triggered when the JavaScript
method Window.prompt() is called.
- Version:
- $Revision: 5301 $
- Author:
- Mike Bowler
handlePrompt
String handlePrompt(Page page,
String message)
- Handle a call to Window.prompt() for the given page.
- Parameters:
page
- the page on which the prompt occurredmessage
- the message in the prompt
- Returns:
- the value typed in or null if the user pressed cancel
Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.