com.meterware.httpunit
Class WebLink
java.lang.Object
|
+--com.meterware.httpunit.WebLink
- public class WebLink
- extends java.lang.Object
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 {@tag WebRequest} to simulate clicking
on the link.
Method Summary |
java.lang.String |
asText()
Returns the text value of this link. |
org.w3c.dom.Node |
getDOMSubtree()
Returns a copy of the domain object model subtree associated with this link. |
WebRequest |
getRequest()
Creates and returns a web request which will simulate clicking on this link. |
java.lang.String |
getURLString()
Returns the URL referenced by this link. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getRequest
public WebRequest getRequest()
- Creates and returns a web request which will simulate clicking on this link.
getURLString
public java.lang.String getURLString()
- Returns the URL referenced by this link. This may be a relative URL.
getDOMSubtree
public org.w3c.dom.Node getDOMSubtree()
- Returns a copy of the domain object model subtree associated with this link.
asText
public java.lang.String asText()
- Returns the text value of this link.