com.atlassian.jira.webtest.framework.impl.selenium.page
Class AbstractSeleniumSubmittableChildPage<P 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.AbstractSeleniumChildPage<P>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumSubmittableChildPage<P>
All Implemented Interfaces:
PageObject, Submittable<P>, ChildPage<P>, Page, SubmittableChildPage<P>
Direct Known Subclasses:
SeleniumEditGeneralConfiguration, SeleniumForm

public abstract class AbstractSeleniumSubmittableChildPage<P extends Page>
extends AbstractSeleniumChildPage<P>
implements SubmittableChildPage<P>

Abstract implementation of the SubmittableChildPage in the Selenium World™.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumChildPage
parentPage
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected AbstractSeleniumSubmittableChildPage(P parentPage, SeleniumContext ctx)
           
 
Method Summary
 P submit()
           Submit this page object.
protected abstract  SeleniumLocator submitLocator()
          A clickable component locator that will submit this page
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumChildPage
back, backLocator
 
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.ChildPage
back
 
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
 

Constructor Detail

AbstractSeleniumSubmittableChildPage

protected AbstractSeleniumSubmittableChildPage(P parentPage,
                                               SeleniumContext ctx)
Method Detail

submitLocator

protected abstract SeleniumLocator submitLocator()
A clickable component locator that will submit this page

Returns:
locator of the submit component of this page

submit

public final P submit()
Description copied from interface: 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().

Specified by:
submit in interface Submittable<P extends Page>
Returns:
target page object of this submit operation.
See Also:


Copyright © 2002-2012 Atlassian. All Rights Reserved.