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

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

public class TableCellLocator
extends AbstractLocator

Locator to run test assertions on a single table cell.


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
TableCellLocator(net.sourceforge.jwebunit.WebTester tester, String tableId, int row, int col)
           
 
Method Summary
 int getCol()
           
 Node[] getNodes()
          A Locator may return 0 nodes, 1 node or multiple nodes.
 int getRow()
           
 com.meterware.httpunit.TableCell getTableCell()
           
 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, 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, wait, wait, wait
 

Constructor Detail

TableCellLocator

public TableCellLocator(net.sourceforge.jwebunit.WebTester tester,
                        String tableId,
                        int row,
                        int col)
Method Detail

getTableCell

public com.meterware.httpunit.TableCell getTableCell()

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

getRow

public int getRow()

getCol

public int getCol()

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-2012 Atlassian. All Rights Reserved.