com.atlassian.jira.webtest.framework.impl.selenium.page.admin.applinks
Class SeleniumNewAppLinksWizard

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.dialog.AbstractSeleniumDialog<T>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiDialog<D>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiPageDialog<NewAppLinkWizard,AppLinksAdminPage>
                          extended by com.atlassian.jira.webtest.framework.impl.selenium.page.admin.applinks.SeleniumNewAppLinksWizard
All Implemented Interfaces:
Localizable, Openable<NewAppLinkWizard>, PageObject, Dialog<NewAppLinkWizard>, PageDialog<NewAppLinkWizard,AppLinksAdminPage>, NewAppLinkWizard

public class SeleniumNewAppLinksWizard
extends AbstractSeleniumAuiPageDialog<NewAppLinkWizard,AppLinksAdminPage>
implements NewAppLinkWizard

Selenium-backed implementation of NewAppLinkWizard.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumNewAppLinksWizard(SeleniumContext ctx, AppLinksAdminPage page)
           
 
Method Summary
 NewAppLinkWizard clickCancel()
          Clicks the "Cancel" link on the wizard.
 NewAppLinkWizard clickNext()
          Clicks the "Next" button on the wizard.
 NewAppLinkWizard clickSubmit()
          Click the "Submit" button on the wizard.
protected  String getOpenDialogClass()
           
 TimedCondition hasErrorMessage(String errorMessage)
          Returns a TimedCondition that can be used to test if the wizard contains a given error message.
 TimedCondition hasWarning(String warnMessage)
          Returns a TimedCondition that can be used to test if the wizard contains a given warning message.
 NewAppLinkWizard open()
           Open this component and return this instance.
 NewAppLinkWizardStep1 step1()
          Returns a page object for step 1 of the wizard.
 NewAppLinkWizardStep2 step2()
          Returns a page object for step 2 of the wizard.
 NewAppLinkWizardStep3 step3()
          Returns a page object for step 3 of the wizard.
 String title()
          Returns the title that is in the wizard (i.e.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiPageDialog
isOpenableInContext, page
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiDialog
cancelLinkLocator, openDialogLocator
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumDialog
detector, isClosed, isOpen, isOpenable, locator
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
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.dialog.PageDialog
page
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Openable
isClosed, isOpen, isOpenable
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumNewAppLinksWizard

public SeleniumNewAppLinksWizard(SeleniumContext ctx,
                                 AppLinksAdminPage page)
Method Detail

title

public String title()
Description copied from interface: NewAppLinkWizard
Returns the title that is in the wizard (i.e. step title).

Specified by:
title in interface NewAppLinkWizard
Returns:
a String containing the title

step1

public NewAppLinkWizardStep1 step1()
Description copied from interface: NewAppLinkWizard
Returns a page object for step 1 of the wizard.

Specified by:
step1 in interface NewAppLinkWizard
Returns:
a NewAppLinkWizardStep1

step2

public NewAppLinkWizardStep2 step2()
Description copied from interface: NewAppLinkWizard
Returns a page object for step 2 of the wizard.

Specified by:
step2 in interface NewAppLinkWizard
Returns:
a NewAppLinkWizardStep2

step3

public NewAppLinkWizardStep3 step3()
Description copied from interface: NewAppLinkWizard
Returns a page object for step 3 of the wizard.

Specified by:
step3 in interface NewAppLinkWizard
Returns:
a NewAppLinkWizardStep3

open

public NewAppLinkWizard open()
Description copied from interface: Openable

Open this component and return this instance.

A pre-condition for this action is that the Openable.isClosed() and Openable.isOpenable() condition is met.

NOTE: this method, like most action methods in the framework, does not verify its results (as opposed to pre-conditions), as in some cases it might be legitimate to attempt to open a component given the test context state deliberately set up to make this attempt fail and then verify that the failure did happen. Thus, invoking clients are responsible for validation results of this action, which may be done by calling Openable.isOpen().

Specified by:
open in interface Openable<NewAppLinkWizard>
Returns:
timed query for this component's instance

getOpenDialogClass

protected String getOpenDialogClass()
Overrides:
getOpenDialogClass in class AbstractSeleniumAuiDialog<NewAppLinkWizard>

clickNext

public NewAppLinkWizard clickNext()
Description copied from interface: NewAppLinkWizard
Clicks the "Next" button on the wizard.

Specified by:
clickNext in interface NewAppLinkWizard
Returns:
a NewAppLinkWizard

clickSubmit

public NewAppLinkWizard clickSubmit()
Description copied from interface: NewAppLinkWizard
Click the "Submit" button on the wizard.

Specified by:
clickSubmit in interface NewAppLinkWizard
Returns:
a NewAppLinkWizard

clickCancel

public NewAppLinkWizard clickCancel()
Description copied from interface: NewAppLinkWizard
Clicks the "Cancel" link on the wizard.

Specified by:
clickCancel in interface NewAppLinkWizard
Returns:
a NewAppLinkWizard

hasErrorMessage

public TimedCondition hasErrorMessage(String errorMessage)
Description copied from interface: NewAppLinkWizard
Returns a TimedCondition that can be used to test if the wizard contains a given error message.

Specified by:
hasErrorMessage in interface NewAppLinkWizard
Parameters:
errorMessage - a String containing an error message
Returns:
a TimedCondition

hasWarning

public TimedCondition hasWarning(String warnMessage)
Description copied from interface: NewAppLinkWizard
Returns a TimedCondition that can be used to test if the wizard contains a given warning message.

Specified by:
hasWarning in interface NewAppLinkWizard
Parameters:
warnMessage - a String containing a warning message
Returns:
a TimedCondition


Copyright © 2002-2013 Atlassian. All Rights Reserved.