public class

TableLocator

extends AbstractLocator
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.locator.AbstractLocator
     ↳ com.atlassian.jira.functest.framework.locator.TableLocator

Class Overview

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

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.locator.AbstractLocator
Public Constructors
TableLocator(WebTester tester, String tableId)
Public Methods
Node[] getNodes()
WebTable getTable()
This will return the com.meterware.httpunit.WebTable using the tableId passed in on contruction of this Locator.
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.locator.AbstractLocator
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.locator.Locator

Public Constructors

public TableLocator (WebTester tester, String tableId)

Public Methods

public Node[] getNodes ()

public WebTable getTable ()

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

Returns
  • a com.meterware.httpunit.WebTable with the specified id
Throws
RuntimeException if the underlying net.sourceforge.jwebunit.WebTester is not in a good place.