|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumFlowPage<P,N>
public abstract class AbstractSeleniumFlowPage<P extends ParentPage,N extends Page>
Abstract Selenium implementation of FlowPage
. It represents a
flow page that navigates to the next step and cancels the flow through clickable links/buttons.
The Cancelable.cancel()
and
FlowPage.next()
methods are defined as template methods using
hooks returning locators for the 'next' and 'cancel' clickable items.
Field Summary | |
---|---|
protected P |
flowParent
|
protected int |
stepNumber
|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
protected |
AbstractSeleniumFlowPage(SeleniumContext ctx,
P flowParent,
int stepNo)
|
Method Summary | |
---|---|
P |
cancel()
Cancel and get the target page object of the cancel operation. |
protected abstract Locator |
cancelLocator()
Locator of a clickable 'cancel' object on the page. |
N |
next()
Submit this flow page and go to the next one in the flow. |
protected abstract Locator |
nextLocator()
Locator of a clickable 'next' object on the page. |
protected abstract Class<N> |
nextStepType()
Next page type |
int |
stepNumber()
Step number in the flow. |
N |
submit()
Submit this page object. |
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.AbstractLocatorBasedPageObject |
---|
detector, isReady |
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.Page |
---|
isAt |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject |
---|
context, isReady |
Field Detail |
---|
protected final P extends ParentPage flowParent
protected final int stepNumber
Constructor Detail |
---|
protected AbstractSeleniumFlowPage(SeleniumContext ctx, P flowParent, int stepNo)
Method Detail |
---|
public final P cancel()
Cancelable
cancel
in interface Cancelable<P extends ParentPage>
public final N submit()
Submittable
Submit this page object.
NOTE: as with most of the actions in the framework, this Submittable instance is only responsible
for validating any pre-conditions that may exist for the submit operation (usually there are none), but not
the results of it. It is conceivable that clients will attempt to submit page objects that contain invalid form
data and, as a result, the submit operation will not result in navigating to the target object. It is up to the
clients to validate if they assumptions as to the result of the operation were valid, which may be done by
querying appropriate objects participating in the interaction, e.g. calling
PageObject.isReady()
.
submit
in interface Submittable<N extends Page>
public final N next()
FlowPage
Submittable.submit()
.
next
in interface FlowPage<P extends ParentPage,N extends Page>
public final int stepNumber()
FlowPage
stepNumber
in interface FlowPage<P extends ParentPage,N extends Page>
protected abstract Locator cancelLocator()
protected abstract Locator nextLocator()
protected abstract Class<N> nextStepType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |