com.atlassian.jira.webtest.framework.impl.selenium.dialog
Class AbstractSeleniumPopup<D extends Dialog<D>>
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.dialog.AbstractSeleniumDialog<D>
com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumPopup<D>
- All Implemented Interfaces:
- Localizable, Openable<D>, PageObject, Dialog<D>
- Direct Known Subclasses:
- AbstractSeleniumPagePopup, AbstractSeleniumPopupInPage
public abstract class AbstractSeleniumPopup<D extends Dialog<D>>
- extends AbstractSeleniumDialog<D>
- implements Dialog<D>
Abstract popup dialog implementation. Popups are special kind of dialogs that are opdned in separate browser windows.
- Since:
- v4.3
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable |
locator |
AbstractSeleniumPopup
protected AbstractSeleniumPopup(SeleniumContext context,
String dialogBody,
String windowName,
SeleniumLocator openLinkLocator)
openDialogLocator
protected SeleniumLocator openDialogLocator()
- Description copied from class:
AbstractSeleniumDialog
- Unique locator of an open dialog.
- Specified by:
openDialogLocator
in class AbstractSeleniumDialog<D extends Dialog<D>>
- Returns:
- open dialog locator
isOpen
public TimedCondition isOpen()
- Description copied from interface:
Openable
- Checks if this component is open.
- Specified by:
isOpen
in interface Openable<D extends Dialog<D>>
- Overrides:
isOpen
in class AbstractSeleniumDialog<D extends Dialog<D>>
- Returns:
- timed condition representing a query if this component is open
- See Also:
TimedCondition
isInPopupWindow
protected final TimedCondition isInPopupWindow()
open
public D 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<D extends Dialog<D>>
- Returns:
- timed query for this component's instance
asTargetType
protected final D asTargetType()
dialogType
protected abstract Class<D> dialogType()
Copyright © 2002-2012 Atlassian. All Rights Reserved.