com.atlassian.confluence.selenium.client
Class Dialog
java.lang.Object
com.atlassian.confluence.selenium.client.Dialog
- Direct Known Subclasses:
- DraftChangesDialog, EmoticonPickerPopup, InsertCharacterDialog, InsertImageDialog, InsertTablePopup, KeyboardShortcutHelpDialog, LinkBrowser, LinkToPageDialog, MacroBrowser, MovePageDialog, PagePermissionsEditor, ScheduleJobAdminEditDialog, ScheduleJobAdminHistoryDialog, SharePageDialog, UserStatusDialog, WhatsNewDialog, WikiMarkupDialog
public class Dialog
- extends java.lang.Object
Method Summary |
protected void |
clickButton(java.lang.String className,
boolean waitForDialogToClose)
|
void |
clickCancel()
Clicks the 'Cancel' link (anything in the dialog with a "button-panel-cancel-link" class. |
protected void |
clickLink(java.lang.String className,
boolean waitForDialogToClose)
|
protected void |
clickPageMenu(java.lang.String menuItemText)
|
java.lang.String |
getId()
|
java.lang.String |
getTitle()
|
boolean |
hasButton(java.lang.String className)
|
boolean |
hasLink(java.lang.String className)
|
protected boolean |
hasPageMenu(java.lang.String menuItemText)
|
boolean |
isButtonDisabled(java.lang.String className)
|
boolean |
isVisible()
|
void |
pressEscape()
Presses the escape key in the dialog. |
void |
pressEscapeOnly()
Presses the escape key in the dialog, without doing the entire up / pressed / down event sequence. |
void |
waitForRemoval()
Waits for the dialog to be removed from the DOM. |
void |
waitUntilClosed()
|
void |
waitUntilVisible()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
client
protected ConfluenceSeleniumClient client
Dialog
public Dialog(java.lang.String id,
ConfluenceSeleniumClient client)
getId
public java.lang.String getId()
getTitle
public java.lang.String getTitle()
waitUntilVisible
public void waitUntilVisible()
waitUntilClosed
public void waitUntilClosed()
isVisible
public boolean isVisible()
clickButton
protected void clickButton(java.lang.String className,
boolean waitForDialogToClose)
clickLink
protected void clickLink(java.lang.String className,
boolean waitForDialogToClose)
hasButton
public boolean hasButton(java.lang.String className)
hasLink
public boolean hasLink(java.lang.String className)
isButtonDisabled
public boolean isButtonDisabled(java.lang.String className)
clickPageMenu
protected void clickPageMenu(java.lang.String menuItemText)
hasPageMenu
protected boolean hasPageMenu(java.lang.String menuItemText)
clickCancel
public void clickCancel()
- Clicks the 'Cancel' link (anything in the dialog with a "button-panel-cancel-link" class.
Fails if link does not exist.
waitForRemoval
public void waitForRemoval()
- Waits for the dialog to be removed from the DOM.
pressEscape
public void pressEscape()
- Presses the escape key in the dialog.
pressEscapeOnly
public void pressEscapeOnly()
- Presses the escape key in the dialog, without doing the entire up / pressed / down event sequence.
Use in cases where the id may be removed from the DOM as a result of the key press.
Copyright © 2003-2014 Atlassian. All Rights Reserved.