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: 2132 $
- 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 occurred.message
- 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.