public class WebPageLocator extends AbstractLocator implements Locator
NOTE : Locator
s are one shot objects. A call to Locator.getNodes()
should return the same Nodes every time it is called. Even if the underlying
data source has changed (for example the WebTester page has changed) the Locator
MUST return the same data.
AbstractLocator.LocatorTextOperation
nodes, originalWebResponse, tester
Constructor and Description |
---|
WebPageLocator(net.sourceforge.jwebunit.WebTester tester) |
Modifier and Type | Method and Description |
---|---|
String |
getHTML()
All of HTML of the web page
|
Node[] |
getNodes()
Returns the single top level Document element
|
String |
toString()
A meaningful "debugging" representation of this Locator to help when test fail.
|
allMatches, betterNode, containsNode, exists, getDOM, getHTML, getNode, getNodesTextImpl, getNodeTextImpl, getRawText, getRawText, getText, getText, getWebResponse, hasNodes, iterator, toStringImpl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allMatches, exists, getHTML, getNode, getRawText, getRawText, getText, getText, hasNodes, iterator
public Node[] getNodes()
public String getHTML()
getHTML
in interface Locator
getHTML
in class AbstractLocator
Copyright © 2002-2023 Atlassian. All Rights Reserved.