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: 1.3 $
Author:
Mike Bowler

Method Summary
 java.lang.String handlePrompt(Page page, java.lang.String message)
 Handle a call to Window.prompt() for the given page.
 

Method Detail

handlePrompt

java.lang.String handlePrompt(Page page,
                              java.lang.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 © 2003-2016 AppPerfect Corporation. All Rights Reserved.