com.meterware.httpunit
Class HTMLPage.Scriptable

java.lang.Object
  |
  +--com.meterware.httpunit.scripting.ScriptableDelegate
        |
        +--com.meterware.httpunit.HTMLPage.Scriptable
Enclosing class:
HTMLPage

public class HTMLPage.Scriptable
extends com.meterware.httpunit.scripting.ScriptableDelegate


Method Summary
 java.lang.Object get(java.lang.String propertyName)
          Returns the value of the named property.
 java.lang.String getCookie()
           
 com.meterware.httpunit.scripting.ScriptableDelegate[] getElementsByName(java.lang.String name)
           
 com.meterware.httpunit.scripting.ScriptableDelegate[] getElementsByTagName(java.lang.String name)
           
 com.meterware.httpunit.scripting.ScriptableDelegate getElementWithID(java.lang.String id)
           
 WebForm.Scriptable[] getForms()
           
 WebImage.Scriptable[] getImages()
           
 WebLink.Scriptable[] 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
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
 

Method Detail

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.scripting.ScriptableDelegate

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

getParent

public WebResponse.Scriptable getParent()

getTitle

public java.lang.String getTitle()
                          throws org.xml.sax.SAXException
org.xml.sax.SAXException

getLinks

public WebLink.Scriptable[] getLinks()

getForms

public WebForm.Scriptable[] getForms()

getImages

public WebImage.Scriptable[] 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 com.meterware.httpunit.scripting.ScriptableDelegate getElementWithID(java.lang.String id)

getElementsByName

public com.meterware.httpunit.scripting.ScriptableDelegate[] getElementsByName(java.lang.String name)

getElementsByTagName

public com.meterware.httpunit.scripting.ScriptableDelegate[] getElementsByTagName(java.lang.String name)

Copyright © 2000-2003 Russell Gold. See license agreement for rights granted.