com.atlassian.jira.webtest.framework.impl.selenium.page.issue
Class AbstractSeleniumConvertToSubtask<P extends ParentPage,N extends Page>

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
              extended by com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumFlowPage<P,N>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.page.issue.AbstractSeleniumConvertToSubtask<P,N>
All Implemented Interfaces:
Cancelable<P>, PageObject, Submittable<N>, IssueAware, FlowPage<P,N>, Page
Direct Known Subclasses:
SeleniumConvertToSubtaskSelectTypes

public abstract class AbstractSeleniumConvertToSubtask<P extends ParentPage,N extends Page>
extends AbstractSeleniumFlowPage<P,N>
implements FlowPage<P,N>, IssueAware

Abstract Convert to sub-task class. It defines common next and cancel locators, as well as detector of the flow step, based on the step number.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumFlowPage
flowParent, stepNumber
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected AbstractSeleniumConvertToSubtask(SeleniumContext ctx, P flowParent, int stepNo)
           
 
Method Summary
protected  Locator cancelLocator()
          Locator of a clickable 'cancel' object on the page.
protected  SeleniumLocator 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.
 IssueData issueData()
          Issue data of the associated issue.
protected  Locator nextLocator()
          Locator of a clickable 'next' object on the page.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumFlowPage
cancel, next, nextStepType, stepNumber, submit
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage
isAt
 
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.page.FlowPage
next, stepNumber
 
Methods inherited from interface com.atlassian.jira.webtest.framework.page.Page
isAt
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Cancelable
cancel
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Submittable
submit
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context
 

Constructor Detail

AbstractSeleniumConvertToSubtask

protected AbstractSeleniumConvertToSubtask(SeleniumContext ctx,
                                           P flowParent,
                                           int stepNo)
Method Detail

issueData

public final IssueData issueData()
Description copied from interface: IssueAware
Issue data of the associated issue.

Specified by:
issueData in interface IssueAware
Returns:
issue data

isReady

public final TimedCondition isReady()
Description copied from class: AbstractLocatorBasedPageObject
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
Overrides:
isReady in class AbstractLocatorBasedPageObject
Returns:
condition representing availability of this page object in the current text context
See Also:
PageObject.isReady(), Conditions

detector

protected final SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

cancelLocator

protected final Locator cancelLocator()
Description copied from class: AbstractSeleniumFlowPage
Locator of a clickable 'cancel' object on the page.

Specified by:
cancelLocator in class AbstractSeleniumFlowPage<P extends ParentPage,N extends Page>
Returns:
cancel object locator

nextLocator

protected final Locator nextLocator()
Description copied from class: AbstractSeleniumFlowPage
Locator of a clickable 'next' object on the page.

Specified by:
nextLocator in class AbstractSeleniumFlowPage<P extends ParentPage,N extends Page>
Returns:
next object locator


Copyright © 2002-2013 Atlassian. All Rights Reserved.