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, ManageWatchersDialog, MovePageDialog, PagePermissionsEditor, ScheduleJobAdminEditDialog, ScheduleJobAdminHistoryDialog, SharePageDialog, UserStatusDialog, WhatsNewDialog, WikiMarkupDialog
public class Dialog
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String id
client
protected ConfluenceSeleniumClient client
Dialog
public Dialog(String id,
ConfluenceSeleniumClient client)
getId
public String getId()
getTitle
public String getTitle()
waitUntilVisible
public void waitUntilVisible()
waitUntilHidden
public void waitUntilHidden()
isVisible
public boolean isVisible()
clickButton
protected void clickButton(String className,
boolean waitForDialogToClose)
clickLink
protected void clickLink(String className,
boolean waitForDialogToClose)
hasButton
public boolean hasButton(String className)
hasLink
public boolean hasLink(String className)
isButtonDisabled
public boolean isButtonDisabled(String className)
clickPageMenu
protected void clickPageMenu(String menuItemText)
hasPageMenu
protected boolean hasPageMenu(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-2012 Atlassian. All Rights Reserved.