public class Dialog extends Object
Modifier and Type | Field and Description |
---|---|
protected ConfluenceSeleniumClient |
client |
protected String |
id |
Constructor and Description |
---|
Dialog(String id,
ConfluenceSeleniumClient client) |
Modifier and Type | Method and Description |
---|---|
protected void |
clickButton(String className,
boolean waitForDialogToClose) |
void |
clickCancel()
Clicks the 'Cancel' link (anything in the dialog with a "button-panel-cancel-link" class.
|
protected void |
clickLink(String className,
boolean waitForDialogToClose) |
protected void |
clickPageMenu(String menuItemText) |
String |
getTitle() |
protected boolean |
hasPageMenu(String menuItemText) |
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() |
protected String id
protected ConfluenceSeleniumClient client
public Dialog(String id, ConfluenceSeleniumClient client)
public String getTitle()
public void waitUntilVisible()
public void waitUntilClosed()
public boolean isVisible()
protected void clickButton(String className, boolean waitForDialogToClose)
protected void clickLink(String className, boolean waitForDialogToClose)
protected void clickPageMenu(String menuItemText)
protected boolean hasPageMenu(String menuItemText)
public void clickCancel()
Fails if link does not exist.
public void waitForRemoval()
public void pressEscape()
public void pressEscapeOnly()
Use in cases where the id may be removed from the DOM as a result of the key press.
Copyright © 2003–2017 Atlassian. All rights reserved.