public class

IdLocator

extends AbstractLocator
implements Locator
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.locator.AbstractLocator
     ↳ com.atlassian.jira.functest.framework.locator.IdLocator

Class Overview

A Locator that looks for the first Element with the specified id

NOTE : Locators are one shot objects. A call to 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.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.locator.AbstractLocator
Public Constructors
IdLocator(WebTester tester, String elementId)
Public Methods
Node[] getNodes()
A Locator may return 0 nodes, 1 node or multiple nodes.
String toString()
[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 IdLocator (WebTester tester, String elementId)

Public Methods

public Node[] getNodes ()

A Locator may return 0 nodes, 1 node or multiple nodes.

Returns
  • returns at most 1 org.w3c.dom.Element

public String toString ()