com.atlassian.jira.webtest.framework.impl.selenium.core
Class AbstractLocatorBasedPageObject

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
All Implemented Interfaces:
PageObject
Direct Known Subclasses:
AbstractNamedTab, AbstractSeleniumComponent, AbstractSeleniumDialog, AbstractSeleniumDialogContent, AbstractSeleniumFrotherControl, AbstractSeleniumPage, AbstractSeleniumPageSection, AbstractSeleniumPluginComponent, AbstractSeleniumPluginModuleComponent, SeleniumApplicationLink, SeleniumCheckbox, SeleniumCommentInput, SeleniumInput, SeleniumMultiSelect, SeleniumPluginModulesList, SeleniumPluginsList, SeleniumSelect, SeleniumWebSudoBanner

public abstract class AbstractLocatorBasedPageObject
extends AbstractSeleniumPageObject
implements PageObject

Abstract Selenium page object based on a single locator. This locator is assumed to be unique for the given object within the current test context and its presence/non presence decides whether this page object is ready to be manipulated by the test.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected AbstractLocatorBasedPageObject(SeleniumContext context)
           
 
Method Summary
protected abstract  Locator detector()
          Main locator of this page object.
 TimedCondition isReady()
          Returns condition representing a query about the state of this page object: if this evaluates to true, this page object is present within the current test context and may be queried/manipulated by the test driver.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
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.webtest.framework.core.PageObject
context
 

Constructor Detail

AbstractLocatorBasedPageObject

protected AbstractLocatorBasedPageObject(SeleniumContext context)
Method Detail

isReady

public TimedCondition isReady()
Returns condition representing a query about the state of this page object: if this evaluates to true, this page object is present within the current test context and may be queried/manipulated by the test driver.

Generic implementation in terms of the underlying locator of this page object. Subclasses may extend it to provide additional/alternative conditions of readiness.

Specified by:
isReady in interface PageObject
Returns:
condition representing availability of this page object in the current text context
See Also:
PageObject.isReady(), Conditions

detector

protected abstract Locator detector()
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Returns:
main locator of this page object


Copyright © 2002-2013 Atlassian. All Rights Reserved.