java.lang.Object | |
↳ | com.atlassian.jira.functest.framework.locator.AbstractLocator |
Known Direct Subclasses |
A base class to derive Locator
s from
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractLocator.LocatorTextOperation |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
nodes | |||||||||||
originalWebResponse | |||||||||||
tester |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get all matches of this locator as an iterable collection of locator entries
| |||||||||||
Return true at least one element will be matches by this locator.
| |||||||||||
Returns the HTML that a called to
getNodes() represent, including the top level nodes themselves. | |||||||||||
Returns the HTML of the specified node.
| |||||||||||
This convenience methods is the the equivalent of getNodes()[0] except when the number of nodes
found is zero, in which case it should return null.
| |||||||||||
Returns the combined raw text of the Nodes that
getNodes() would return or empty string. | |||||||||||
Returns the raw text of the specified Node.
| |||||||||||
Returns the combined collapsed text of the Nodes that
getNodes() would return or empty string. | |||||||||||
Returns the collapsed text of the specified Node.
| |||||||||||
This will return true if the Locator found some org.w3c.dom.Node's.
| |||||||||||
This will return a
Iterator that returns LocatorEntry objects |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the DOM Document from the WebTester.
| |||||||||||
Called to get the test or HTML of an org.w3c.dom.Node
| |||||||||||
Called to get all the text or HTML of a set of org.w3c.dom.Node's.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.functest.framework.locator.Locator
|
Get all matches of this locator as an iterable collection of locator entries
Return true at least one element will be matches by this locator.
Returns the HTML that a called to getNodes()
represent, including the top level nodes themselves.
Returns the HTML of the specified node. The node MUST be one of the nodes that a call to getNodes()
would return.
node | the node that we previously returned by a call to getNodes() |
---|
This convenience methods is the the equivalent of getNodes()[0] except when the number of nodes found is zero, in which case it should return null.
Returns the combined raw text of the Nodes that getNodes()
would return or empty string.
Returns the raw text of the specified Node. The node MUST be one of the nodes that a call to getNodes()
would return.
node | the node that we previously returned by a call to getNodes() |
---|
Returns the combined collapsed text of the Nodes that getNodes()
would return or empty string.
Returns the collapsed text of the specified Node. The node MUST be one of the nodes that a call to getNodes()
would return.
node | the node that we previously returned by a call to getNodes() |
---|
This will return true if the Locator found some org.w3c.dom.Node's. This is really a convenience method for getNodes().length > 0
This will return a Iterator
that returns LocatorEntry
objects
Iterator
that returns LocatorEntry
objects
Returns the DOM Document from the WebTester. This is useful to override in tests
tester | the WebTester in play |
---|
Called to get the test or HTML of an org.w3c.dom.Node
node | the Node |
---|---|
textOperation | the type of text operation |
Called to get all the text or HTML of a set of org.w3c.dom.Node's. Makes a call to AbstractLocator#getNodeHtmlImpl for each node and appends it.
nodes | the Nodes to get text for |
---|---|
textOperation | the type of text operation |