com.meterware.httpunit

Class WebResponse.Scriptable

public class WebResponse.Scriptable extends ScriptableDelegate implements NamedDelegate

Method Summary
voidalert(String message)
voidclose()
Objectget(String propertyName)
Returns the value of the named property.
ClientPropertiesgetClientProperties()
booleangetConfirmationResponse(String message)
HTMLPage.ScriptablegetDocument()
WebResponse.Scriptable[]getFrames()
StringgetName()
URLgetURL()
StringgetUserResponse(String prompt, String defaultResponse)
voidload()
WebResponse.Scriptableopen(String urlString, String name, String features, boolean replace)
voidset(String propertyName, Object value)
Sets the value of the named property.
voidsetLocation(String relativeURL)

Method Detail

alert

public void alert(String message)

close

public void close()

get

public Object get(String propertyName)
Returns the value of the named property. Will return null if the property does not exist.

getClientProperties

public ClientProperties getClientProperties()

getConfirmationResponse

public boolean getConfirmationResponse(String message)

getDocument

public HTMLPage.Scriptable getDocument()

getFrames

public WebResponse.Scriptable[] getFrames()

getName

public String getName()

getURL

public URL getURL()

getUserResponse

public String getUserResponse(String prompt, String defaultResponse)

load

public void load()

open

public WebResponse.Scriptable open(String urlString, String name, String features, boolean replace)

set

public void set(String propertyName, Object value)
Sets the value of the named property. Will throw a runtime exception if the property does not exist or cannot accept the specified value.

setLocation

public void setLocation(String relativeURL)