Package com.meterware.httpunit
Class HTMLPage.Scriptable
- java.lang.Object
-
- com.meterware.httpunit.scripting.ScriptableDelegate
-
- com.meterware.httpunit.HTMLPage.Scriptable
-
- All Implemented Interfaces:
ScriptingEventHandler
,ScriptingHandler
- Enclosing class:
- HTMLPage
public class HTMLPage.Scriptable extends ScriptableDelegate
scriptable for HTML Page
-
-
Field Summary
-
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
NULL_SCRIPT_ENGINE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String propertyName)
get the Object with the given propertyNamejava.lang.String
getCookie()
ScriptableDelegate[]
getElementsByName(java.lang.String name)
ScriptableDelegate[]
getElementsByTagName(java.lang.String name)
ScriptableDelegate
getElementWithID(java.lang.String id)
ScriptingHandler[]
getForms()
ScriptingHandler[]
getImages()
ScriptingHandler[]
getLinks()
WebResponse.Scriptable
getParent()
java.lang.String
getTitle()
boolean
replaceText(java.lang.String text, java.lang.String contentType)
void
set(java.lang.String propertyName, java.lang.Object value)
Sets the value of the named property.void
setCookie(java.lang.String name, java.lang.String value)
-
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, setScriptEngine, supportsScriptLanguage
-
-
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String propertyName)
get the Object with the given propertyName- Overrides:
get
in classScriptableDelegate
- Parameters:
propertyName
- - the name of the property
-
set
public void set(java.lang.String propertyName, java.lang.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.- Overrides:
set
in classScriptableDelegate
-
getParent
public WebResponse.Scriptable getParent()
-
getTitle
public java.lang.String getTitle() throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
getLinks
public ScriptingHandler[] getLinks()
-
getForms
public ScriptingHandler[] getForms()
-
getImages
public ScriptingHandler[] getImages()
-
replaceText
public boolean replaceText(java.lang.String text, java.lang.String contentType)
-
setCookie
public void setCookie(java.lang.String name, java.lang.String value)
-
getCookie
public java.lang.String getCookie()
-
getElementWithID
public ScriptableDelegate getElementWithID(java.lang.String id)
-
getElementsByName
public ScriptableDelegate[] getElementsByName(java.lang.String name)
-
getElementsByTagName
public ScriptableDelegate[] getElementsByTagName(java.lang.String name)
-
-