com.meterware.httpunit

Class HTMLPage.Scriptable

public class HTMLPage.Scriptable extends ScriptableDelegate

Method Summary
Objectget(String propertyName)
StringgetCookie()
ScriptableDelegate[]getElementsByName(String name)
ScriptableDelegate[]getElementsByTagName(String name)
ScriptableDelegategetElementWithID(String id)
WebForm.Scriptable[]getForms()
WebImage.Scriptable[]getImages()
WebLink.Scriptable[]getLinks()
WebResponse.ScriptablegetParent()
StringgetTitle()
booleanreplaceText(String text, String contentType)
voidset(String propertyName, Object value)
Sets the value of the named property.
voidsetCookie(String name, String value)

Method Detail

get

public Object get(String propertyName)

getCookie

public String getCookie()

getElementsByName

public ScriptableDelegate[] getElementsByName(String name)

getElementsByTagName

public ScriptableDelegate[] getElementsByTagName(String name)

getElementWithID

public ScriptableDelegate getElementWithID(String id)

getForms

public WebForm.Scriptable[] getForms()

getImages

public WebImage.Scriptable[] getImages()

getLinks

public WebLink.Scriptable[] getLinks()

getParent

public WebResponse.Scriptable getParent()

getTitle

public String getTitle()

replaceText

public boolean replaceText(String text, String contentType)

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.

setCookie

public void setCookie(String name, String value)