com.atlassian.jira.pageobjects.project.summary
Class EditProjectDialog
java.lang.Object
com.atlassian.jira.pageobjects.dialogs.JiraDialog
com.atlassian.jira.pageobjects.dialogs.FormDialog
com.atlassian.jira.pageobjects.project.summary.EditProjectDialog
public class EditProjectDialog
- extends FormDialog
Edit project dialog as launched from the project configuration summary page
- Since:
- v4.4
Fields inherited from class com.atlassian.jira.pageobjects.dialogs.JiraDialog |
binder, CONTENT_AREA_CLASS, CONTENT_READY_CLASS, DIALOG_CLASS, DIALOG_OPEN_CLASS, driver, extendedFinder, HEADING_AREA_CLASS, id, locator, queryFactory |
Methods inherited from class com.atlassian.jira.pageobjects.dialogs.FormDialog |
assertDialogClosed, assertDialogOpen, close, escape, getAuiMessage, getDialogElement, getFormErrorElements, getFormErrorList, getTimedTitle, getTitle, hasFormErrors, initAbstractDialog, messages, ready, setElement, submit, submit, submit, waitForFormErrors, waitUntilClosed, waitUntilHidden, waitWhileSubmitting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditProjectDialog
public EditProjectDialog()
initialize
public void initialize()
setProjectName
public EditProjectDialog setProjectName(String newProjectName)
isProjectKeyVisible
public com.atlassian.pageobjects.elements.query.TimedCondition isProjectKeyVisible()
setProjectKey
public EditProjectDialog setProjectKey(String newProjectKey)
getProjectKey
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectKey()
getProjectName
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectName()
getProjectDescription
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectDescription()
setUrl
public EditProjectDialog setUrl(String url)
getUrl
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getUrl()
setAvatar
public EditProjectDialog setAvatar(String id)
- Select an avatar from the avatar picker, based on its database ID.
- Parameters:
id
-
- Returns:
- the edit project dialog
chooseAvatarOption
public EditProjectDialog chooseAvatarOption(int number)
- Select an avatar from the avatar picker, based on its position in the list of available avatars.
- Parameters:
number
- from 1 to N, where N is the (expected?) number of options. There are ~16 system avatars.
- Returns:
- the edit project dialog
setDescription
public EditProjectDialog setDescription(String description)
submit
public boolean submit()
getErrorMessage
public String getErrorMessage()
getFormErrors
public Map<String,String> getFormErrors()
- Description copied from class:
FormDialog
- Return a mapping of the errors currently on the form. The mapping if from parameterName -> error.
- Overrides:
getFormErrors
in class FormDialog
- Returns:
- a mapping from parameterName -> error of all the errors currently on the form.
isProjectKeyDisabled
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isProjectKeyDisabled()
toggleKeyEdit
public EditProjectDialog toggleKeyEdit()
isWarningDisplayed
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isWarningDisplayed()
Copyright © 2002-2013 Atlassian. All Rights Reserved.