public class AggregateLocator extends AbstractLocator implements Locator
Locators
NOTE : Locators 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.LocatorTextOperationnodes, originalWebResponse, tester| Constructor and Description |
|---|
AggregateLocator(Locator[] locators)
Aggregates together the values of the specified array of
Locators |
AggregateLocator(Locator firstLocator,
Locator secondLocator)
Creates an agggregate of the firstLocator and the secondLocator
|
| Modifier and Type | Method and Description |
|---|---|
Node[] |
getNodes()
A
Locator may return 0 nodes, 1 node or multiple nodes. |
String |
toString()
A meaningful "debugging" representation of this Locator to help when test fail.
|
allMatches, betterNode, containsNode, exists, getDOM, getHTML, getHTML, getNode, getNodesTextImpl, getNodeTextImpl, getRawText, getRawText, getText, getText, getWebResponse, hasNodes, iterator, toStringImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallMatches, exists, getHTML, getHTML, getNode, getRawText, getRawText, getText, getText, hasNodes, iteratorpublic AggregateLocator(Locator firstLocator, Locator secondLocator)
firstLocator - the first Locator to aggregatesecondLocator - the second Locator to aggregatepublic Node[] getNodes()
LocatorLocator may return 0 nodes, 1 node or multiple nodes.
Copyright © 2002-2019 Atlassian. All Rights Reserved.