com.atlassian.jira.webtest.framework.impl.selenium.dialog
Class AbstractSeleniumAuiDialog<T extends Dialog<T>>

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<T>
All Implemented Interfaces:
Localizable, Openable<T>, PageObject, Dialog<T>
Direct Known Subclasses:
AbstractIssueActionDialog, AbstractSeleniumAuiPageDialog, SeleniumDotDialog

public abstract class AbstractSeleniumAuiDialog<T extends Dialog<T>>
extends AbstractSeleniumDialog<T>
implements Dialog<T>

Abstract Selenium Dialog implementation representing an AUI dialog.

AUI dialogs are opened as a layer on top of the current page. Each AUI dialog contains an unique ID and when open and its contents loaded, it adds a special CSS marker class to its DIV container.

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 AbstractSeleniumAuiDialog(SeleniumContext context, String dialogId)
          Subclasses must provide unique ID for given dialog type.
 
Method Summary
protected  SeleniumLocator cancelLinkLocator()
           
protected  String getOpenDialogClass()
           
protected  SeleniumLocator openDialogLocator()
          Unique locator of an open dialog.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumDialog
detector, isClosed, isOpen, isOpenable, isOpenableInContext, 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.core.Openable
isClosed, isOpen, isOpenable, open
 
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

AbstractSeleniumAuiDialog

protected AbstractSeleniumAuiDialog(SeleniumContext context,
                                    String dialogId)
Subclasses must provide unique ID for given dialog type. This id is used as an identifier of the div element serving as a container of the dialog.

Parameters:
context - current selenium test context
dialogId - unique HTML id of the dialog container div
Method Detail

getOpenDialogClass

protected String getOpenDialogClass()

openDialogLocator

protected SeleniumLocator openDialogLocator()
Description copied from class: AbstractSeleniumDialog
Unique locator of an open dialog.

Specified by:
openDialogLocator in class AbstractSeleniumDialog<T extends Dialog<T>>
Returns:
open dialog locator

cancelLinkLocator

protected final SeleniumLocator cancelLinkLocator()


Copyright © 2002-2012 Atlassian. All Rights Reserved.