com.atlassian.jira.functest.framework.locator
Class WebPageLocator
java.lang.Object
com.atlassian.jira.functest.framework.locator.AbstractLocator
com.atlassian.jira.functest.framework.locator.WebPageLocator
- All Implemented Interfaces:
- Locator
public class WebPageLocator
- extends AbstractLocator
- implements Locator
This locator returns the whole of the web page as text.
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.
- Since:
- v3.13
Constructor Summary |
WebPageLocator(net.sourceforge.jwebunit.WebTester tester)
|
Method Summary |
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. |
Methods inherited from class com.atlassian.jira.functest.framework.locator.AbstractLocator |
allMatches, betterNode, containsNode, exists, getDOM, getHTML, getNode, getNodesTextImpl, getNodeTextImpl, getRawText, getRawText, getText, getText, getWebResponse, hasNodes, iterator, toStringImpl |
WebPageLocator
public WebPageLocator(net.sourceforge.jwebunit.WebTester tester)
getNodes
public Node[] getNodes()
- Returns the single top level Document element
- Specified by:
getNodes
in interface Locator
- Returns:
- the single top level Document element
getHTML
public String getHTML()
- All of HTML of the web page
- Specified by:
getHTML
in interface Locator
- Overrides:
getHTML
in class AbstractLocator
- Returns:
- the HTML of the web page
toString
public String toString()
- Description copied from interface:
Locator
- A meaningful "debugging" representation of this Locator to help when test fail.
- Specified by:
toString
in interface Locator
- Overrides:
toString
in class Object
- Returns:
- A meaningful "debugging" representation of this Locator to help when test fail.
Copyright © 2002-2014 Atlassian. All Rights Reserved.