public class FormDialog extends JiraDialog
Modifier and Type | Field and Description |
---|---|
protected AUIBlanket |
auiBlanket |
protected com.atlassian.pageobjects.elements.PageElement |
form |
static String |
FORM_SUBMITTING_CLASS |
protected com.atlassian.pageobjects.elements.PageElement |
header |
protected com.atlassian.pageobjects.elements.PageElement |
loading |
protected FormMessages |
messages |
binder, CONTENT_AREA_CLASS, CONTENT_READY_CLASS, DIALOG_CLASS, DIALOG_OPEN_CLASS, driver, extendedFinder, HEADING_AREA_CLASS, id, locator, queryFactory
Constructor and Description |
---|
FormDialog() |
FormDialog(String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptDirtyFormWarning()
Accept a dirty form warning in an alert (if there is one)
|
protected void |
assertDialogClosed() |
protected void |
assertDialogOpen() |
void |
close()
Close the dialog by clicking on the kindly ever-present cancel button.
|
void |
closeNoWait()
Close the dialog by clicking on the cancel button, not dismissing any dirty form warnings.
|
void |
escape()
Closes the dialog by hitting ESC
|
AuiMessage |
getAuiMessage() |
List<String> |
getFields() |
com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<com.atlassian.pageobjects.elements.PageElement>> |
getFormErrorElements() |
List<String> |
getFormErrorList()
Return a list of the form errors currently on the dialog.
|
Map<String,String> |
getFormErrors()
Return a mapping of the errors currently on the form.
|
com.atlassian.pageobjects.elements.query.TimedQuery<String> |
getTimedTitle() |
String |
getTitle() |
boolean |
hasFormErrors()
Return true iff the dialog has error messages contained in its associated form.
|
void |
initAbstractDialog() |
FormMessages |
messages() |
void |
ready()
Called when the dialog is first displayed.
|
protected static void |
setElement(com.atlassian.pageobjects.elements.PageElement element,
String value) |
void |
setField(String id,
String value) |
protected boolean |
submit(org.openqa.selenium.By locator)
Do a submit on the passed element found using the passed locator.
|
protected boolean |
submit(com.atlassian.pageobjects.elements.PageElement pageElement)
Do a submit on the passed element.
|
boolean |
submit(String name)
Do a submit on the passed the form element with the passed name.
|
FormDialog |
waitForFormErrors()
Waits for at least one error to be visible
|
protected void |
waitUntilClosed() |
protected void |
waitUntilHidden() |
protected void |
waitWhileSubmitting() |
find, find, findAll, findAll, getDialogElement, isClosed, isInDOM, isOpen, waitUntilFinishedLoading
public static final String FORM_SUBMITTING_CLASS
protected com.atlassian.pageobjects.elements.PageElement loading
protected com.atlassian.pageobjects.elements.PageElement form
protected com.atlassian.pageobjects.elements.PageElement header
protected AUIBlanket auiBlanket
protected FormMessages messages
public FormDialog(String id)
public FormDialog()
public final void ready()
public final void initAbstractDialog()
initAbstractDialog
in class JiraDialog
public AuiMessage getAuiMessage()
protected boolean submit(com.atlassian.pageobjects.elements.PageElement pageElement)
pageElement
- the page element to submit.protected boolean submit(org.openqa.selenium.By locator)
locator
- for the element to select.public boolean submit(String name)
name
- the name of the element to submit.public void escape()
public void close()
public void closeNoWait()
public boolean acceptDirtyFormWarning()
public FormMessages messages()
public boolean hasFormErrors()
public List<String> getFormErrorList()
public FormDialog waitForFormErrors()
public Map<String,String> getFormErrors()
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<com.atlassian.pageobjects.elements.PageElement>> getFormErrorElements()
public String getTitle()
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedTitle()
protected void assertDialogOpen()
protected void assertDialogClosed()
protected void waitWhileSubmitting()
protected void waitUntilClosed()
protected void waitUntilHidden()
protected static void setElement(com.atlassian.pageobjects.elements.PageElement element, String value)
Copyright © 2002-2017 Atlassian. All Rights Reserved.