com.atlassian.jira.functest.framework.locator
Class TableLocator

java.lang.Object
  extended by com.atlassian.jira.functest.framework.locator.AbstractLocator
      extended by com.atlassian.jira.functest.framework.locator.TableLocator
All Implemented Interfaces:
Locator

public class TableLocator
extends AbstractLocator

This will locate HTML tables by 'tableId' and return the WebTable ready for more assertions. It also returns the Node that makes up the table as well as its combined text.

Since:
v3.13

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.functest.framework.locator.AbstractLocator
AbstractLocator.LocatorTextOperation
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.locator.AbstractLocator
nodes, originalWebResponse, tester
 
Constructor Summary
TableLocator(net.sourceforge.jwebunit.WebTester tester, String tableId)
           
 
Method Summary
 Node[] getNodes()
          A Locator may return 0 nodes, 1 node or multiple nodes.
 com.meterware.httpunit.WebTable getTable()
          This will return the WebTable using the tableId passed in on contruction of this Locator.
 
Methods inherited from class com.atlassian.jira.functest.framework.locator.AbstractLocator
allMatches, betterNode, containsNode, exists, getDOM, getHTML, getHTML, getNode, getNodesTextImpl, getNodeTextImpl, getRawText, getRawText, getText, getText, getWebResponse, hasNodes, iterator, toStringImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.functest.framework.locator.Locator
toString
 

Constructor Detail

TableLocator

public TableLocator(net.sourceforge.jwebunit.WebTester tester,
                    String tableId)
Method Detail

getNodes

public Node[] getNodes()
Description copied from interface: Locator
A Locator may return 0 nodes, 1 node or multiple nodes.

Returns:
a non null array of Nodes that match, or a zero sized array of no matches are made

getTable

public com.meterware.httpunit.WebTable getTable()
This will return the WebTable using the tableId passed in on contruction of this Locator.

Returns:
a WebTable with the specified id
Throws:
RuntimeException - if the underlying WebTester is not in a good place.


Copyright © 2002-2014 Atlassian. All Rights Reserved.