|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.meterware.httpunit.ParameterHolder
com.meterware.httpunit.WebRequestSource
com.meterware.httpunit.FixedURLWebRequestSource
com.meterware.httpunit.WebLink
This class represents a link in an HTML page. Users of this class may examine the
structure of the link (as a DOM), or create a WebRequest to simulate clicking
on the link.
| Nested Class Summary | |
class |
WebLink.Scriptable
|
| Field Summary | |
static HTMLElementPredicate |
MATCH_CONTAINED_TEXT
Predicate to match part or all of a link's contained text. |
static HTMLElementPredicate |
MATCH_ID
Predicate to match a link's ID. |
static HTMLElementPredicate |
MATCH_NAME
Predicate to match a link's name. |
static HTMLElementPredicate |
MATCH_TEXT
Predicate to match a link's text exactly. |
static HTMLElementPredicate |
MATCH_URL_STRING
Predicate to match part or all of a link's URL string. |
| Method Summary | |
protected void |
addPresetParameter(java.lang.String name,
java.lang.String value)
Records a parameter defined by including it in the destination URL. |
java.lang.String |
asText()
Returns the text value of this link. |
WebResponse |
click()
Submits a request as though the user had clicked on this link. |
protected java.lang.String |
getEmptyParameterValue()
|
java.lang.String[] |
getParameterNames()
Returns an array containing the names of any parameters defined as part of this link's URL. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the multiple default values of the named parameter. |
WebRequest |
getRequest()
Creates and returns a web request which will simulate clicking on this link. |
com.meterware.httpunit.scripting.ScriptableDelegate |
getScriptableDelegate()
Returns the scriptable delegate. |
java.lang.String |
getURLString()
Returns the URL referenced by this link. |
void |
mouseOver()
Simulates moving the mouse over the link. |
protected void |
setDestination(java.lang.String destination)
|
| Methods inherited from class com.meterware.httpunit.WebRequestSource |
getBaseResponse, getBaseURL, getClassName, getCurrentFrameContents, getDestination, getDOMSubtree, getFragmentIdentifier, getHTMLPage, getID, getName, getNode, getPageFrame, getRelativeURL, getTarget, getTitle, loadDestinationParameters, setTargetAttribute, submitRequest, submitRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final HTMLElementPredicate MATCH_URL_STRING
public static final HTMLElementPredicate MATCH_TEXT
public static final HTMLElementPredicate MATCH_CONTAINED_TEXT
public static final HTMLElementPredicate MATCH_ID
public static final HTMLElementPredicate MATCH_NAME
| Method Detail |
public java.lang.String getURLString()
public java.lang.String asText()
public WebResponse click()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXExceptionpublic void mouseOver()
public com.meterware.httpunit.scripting.ScriptableDelegate getScriptableDelegate()
public WebRequest getRequest()
getRequest in class WebRequestSourcepublic java.lang.String[] getParameterNames()
getParameterNames in class WebRequestSourcepublic java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues in class WebRequestSource
protected void addPresetParameter(java.lang.String name,
java.lang.String value)
WebRequestSource
addPresetParameter in class WebRequestSourceprotected java.lang.String getEmptyParameterValue()
getEmptyParameterValue in class WebRequestSourceprotected void setDestination(java.lang.String destination)
setDestination in class WebRequestSource
|
Copyright © 2000-2003 Russell Gold. See license agreement for rights granted. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||