Package com.meterware.httpunit
Class WebResponse.Scriptable
java.lang.Object
com.meterware.httpunit.scripting.ScriptableDelegate
com.meterware.httpunit.WebResponse.Scriptable
- All Implemented Interfaces:
NamedDelegate
,ScriptingEventHandler
,ScriptingHandler
- Enclosing class:
- WebResponse
-
Field Summary
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
NULL_SCRIPT_ENGINE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Returns the value of the named property.boolean
getConfirmationResponse
(String message) getName()
getURL()
getUserResponse
(String prompt, String defaultResponse) void
load()
void
Sets the value of the named property.void
setLocation
(String relativeURL) Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, setScriptEngine, supportsScriptLanguage
-
Constructor Details
-
Scriptable
public Scriptable()
-
-
Method Details
-
alertUser
-
getConfirmationResponse
-
getUserResponse
-
getClientProperties
-
getDocument
-
getFrames
- Throws:
SAXException
-
load
- Throws:
SAXException
-
open
public WebResponse.Scriptable open(String urlString, String name, String features, boolean replace) throws IOException, SAXException - Throws:
IOException
SAXException
-
closeWindow
public void closeWindow() -
get
Returns the value of the named property. Will return null if the property does not exist.- Overrides:
get
in classScriptableDelegate
-
getName
- Specified by:
getName
in interfaceNamedDelegate
-
set
Sets the value of the named property. Will throw a runtime exception if the property does not exist or cannot accept the specified value.- Overrides:
set
in classScriptableDelegate
-
setLocation
- Throws:
IOException
SAXException
-
getURL
-