|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.pageobjects.dialogs.AbstractFormDialog
public abstract class AbstractFormDialog
Represents a JIRA from dialog. These type of Dialogs basically slurp HTML from the server and display it on the client side. Input is submitted to a back end action. This action will either indicate that the action was a success or will return HTML with errors in it for display to the user.
Field Summary | |
---|---|
protected com.atlassian.pageobjects.PageBinder |
binder
|
protected com.atlassian.pageobjects.elements.PageElement |
dialogElement
|
protected com.atlassian.webdriver.AtlassianWebDriver |
driver
|
protected com.atlassian.pageobjects.elements.PageElement |
form
|
protected com.atlassian.pageobjects.elements.PageElement |
header
|
protected String |
id
|
protected com.atlassian.pageobjects.elements.PageElement |
loading
|
protected com.atlassian.pageobjects.elements.PageElementFinder |
locator
|
Constructor Summary | |
---|---|
protected |
AbstractFormDialog(String id)
|
Method Summary | |
---|---|
protected void |
assertDialogClosed()
|
protected void |
assertDialogOpen()
|
void |
close()
Close the dialog by clicking on the kindly ever-present cancel button. |
void |
escape()
Closes the dialog by hitting ESC |
protected com.atlassian.pageobjects.elements.PageElement |
find(org.openqa.selenium.By locator)
|
AuiMessage |
getAuiMessage()
|
protected com.atlassian.pageobjects.elements.PageElement |
getDialogElement()
|
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. |
String |
getTitle()
|
boolean |
hasFormErrors()
Return true iff the dialog has error messages contained in its associated form. |
void |
initAbstractDialog()
|
boolean |
isOpen()
|
void |
ready()
Called when the dialog is first displayed. |
protected static void |
setElement(com.atlassian.pageobjects.elements.PageElement element,
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. |
protected boolean |
submit(String name)
Do a submit on the passed the form element with the passed name. |
protected void |
waitUntilClosed()
|
protected void |
waitUntilHidden()
|
protected void |
waitWhileSubmitting()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder locator
@Inject protected com.atlassian.webdriver.AtlassianWebDriver driver
@Inject protected com.atlassian.pageobjects.PageBinder binder
protected com.atlassian.pageobjects.elements.PageElement loading
protected com.atlassian.pageobjects.elements.PageElement form
protected com.atlassian.pageobjects.elements.PageElement dialogElement
protected com.atlassian.pageobjects.elements.PageElement header
protected String id
Constructor Detail |
---|
protected AbstractFormDialog(String id)
Method Detail |
---|
public final void ready()
public final void initAbstractDialog()
public AuiMessage getAuiMessage()
public boolean isOpen()
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.
protected boolean submit(String name)
name
- the name of the element to submit.
public void escape()
public void close()
public boolean hasFormErrors()
public List<String> getFormErrorList()
public Map<String,String> getFormErrors()
public String getTitle()
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)
protected com.atlassian.pageobjects.elements.PageElement getDialogElement()
protected com.atlassian.pageobjects.elements.PageElement find(org.openqa.selenium.By locator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |