com.meterware.httpunit
Class WebForm.Scriptable
java.lang.Object
|
+--com.meterware.httpunit.scripting.ScriptableDelegate
|
+--com.meterware.httpunit.HTMLElementScriptable
|
+--com.meterware.httpunit.WebForm.Scriptable
- All Implemented Interfaces:
- com.meterware.httpunit.scripting.DocumentElement, com.meterware.httpunit.scripting.NamedDelegate
- Enclosing class:
- WebForm
- public class WebForm.Scriptable
- extends com.meterware.httpunit.HTMLElementScriptable
- implements com.meterware.httpunit.scripting.NamedDelegate
Method Summary |
java.lang.Object |
get(java.lang.String propertyName)
Returns the value of the named property. |
java.lang.String |
getAction()
|
com.meterware.httpunit.scripting.ScriptableDelegate[] |
getElementDelegates()
|
com.meterware.httpunit.scripting.ScriptableDelegate[] |
getElementsByTagName(java.lang.String name)
|
java.lang.String |
getName()
|
void |
reset()
|
void |
set(java.lang.String propertyName,
java.lang.Object value)
Sets the value of the named property. |
void |
setAction(java.lang.String newAction)
|
void |
setParameterValue(java.lang.String name,
java.lang.String value)
|
void |
submit()
|
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate |
doEvent, evaluateURL, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScript |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAction
public java.lang.String getAction()
setAction
public void setAction(java.lang.String newAction)
submit
public void submit()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
reset
public void reset()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
getName
public java.lang.String getName()
- Specified by:
getName
in interface com.meterware.httpunit.scripting.NamedDelegate
get
public java.lang.Object get(java.lang.String propertyName)
- Description copied from class:
com.meterware.httpunit.scripting.ScriptableDelegate
- Returns the value of the named property. Will return null if the property does not exist.
- Overrides:
get
in class com.meterware.httpunit.HTMLElementScriptable
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 class com.meterware.httpunit.scripting.ScriptableDelegate
setParameterValue
public void setParameterValue(java.lang.String name,
java.lang.String value)
getElementDelegates
public com.meterware.httpunit.scripting.ScriptableDelegate[] getElementDelegates()
getElementsByTagName
public com.meterware.httpunit.scripting.ScriptableDelegate[] getElementsByTagName(java.lang.String name)
throws org.xml.sax.SAXException
org.xml.sax.SAXException