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 |
getId() |
String |
getTitle() |
boolean |
hasButton(String className) |
boolean |
hasLink(String className) |
protected boolean |
hasPageMenu(String menuItemText) |
boolean |
isButtonDisabled(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() |
protected String id
protected ConfluenceSeleniumClient client
public Dialog(String id, ConfluenceSeleniumClient client)
public String getId()
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)
public boolean hasButton(String className)
public boolean hasLink(String className)
public boolean isButtonDisabled(String className)
protected void clickPageMenu(String menuItemText)
protected boolean hasPageMenu(String menuItemText)
public void clickCancel()
public void waitForRemoval()
public void pressEscape()
public void pressEscapeOnly()
Copyright © 2003–2015 Atlassian. All rights reserved.