|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog<T>
public abstract class AbstractDialog<T extends AbstractDialog<T>>
Abstract implementation of Dialog
in terms of a locator marking this dialog's
visible contents. The locator is provided by concrete implementations of dialogs.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject |
---|
assertThat, client, context |
Constructor Summary | |
---|---|
protected |
AbstractDialog(SeleniumContext ctx,
Class<T> targetType)
|
Method Summary | |
---|---|
void |
assertReady(long timeout)
Assert that this object is loaded and ready to be exercised by Selenium. |
protected T |
asTargetType()
|
protected String |
dialogContentsReadyLocator()
Subclasses may override this method to provide dialog-specific contents locator, whose presence will indicate that the dialog contents have been loaded and the dialog is generally ready to use. |
String |
inDialog(String jqueryLocator)
Returns full in-dialog jQuery locator for the locator passed in argument. |
boolean |
isClosed()
Test if this dialog is closed. |
boolean |
isOpen()
Test if this dialog is open. |
String |
locator()
Locator of this page object. |
protected abstract String |
visibleDialogContentsLocator()
jQuery locator of the main dialog component (when visible). |
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.selenium.framework.dialogs.Dialog |
---|
isOpenable, open |
Constructor Detail |
---|
protected AbstractDialog(SeleniumContext ctx, Class<T> targetType)
Method Detail |
---|
protected abstract String visibleDialogContentsLocator()
protected String dialogContentsReadyLocator()
Subclasses may override this method to provide dialog-specific contents locator, whose presence will indicate that the dialog contents have been loaded and the dialog is generally ready to use.
If the locator has not prefix, it must be relative to the dialog contents locator, as it will be appended to the main dialog locator. Locators containing prefix will be used as the stand.
public final String locator()
LocalizablePageObject
locator
in interface LocalizablePageObject
public final void assertReady(long timeout)
PageObject
assertReady
in interface PageObject
timeout
- timeout to waitpublic final String inDialog(String jqueryLocator)
Dialog
Returns full in-dialog jQuery locator for the locator passed in argument. The returned locator will only locate an element on an open dialog.
jqueryLocator should not contain the 'jquery=' prefix.
inDialog
in interface Dialog
jqueryLocator
- locator of an element within dialog
public final boolean isOpen()
Dialog
isOpen
in interface Dialog
true
, if this dialog is openpublic final boolean isClosed()
Dialog
Dialog.isOpenable()
,
or Dialog.isOpen()
return false.
- Specified by:
isClosed
in interface Dialog
- Returns:
true
, if this dialog is NOT open (this includes situation where this dialog cannot be opened,
se Dialog.isOpenable()
.
protected final T asTargetType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |