Package com.atlassian.crowd.pageobjects
Class MailServerPage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
com.atlassian.crowd.pageobjects.MailServerPage
- All Implemented Interfaces:
CrowdPage,com.atlassian.pageobjects.Page
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.atlassian.pageobjects.elements.PageElementprotected AuiFlagsprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected AuiSelect2protected com.atlassian.pageobjects.elements.SelectElementprotected PasswordChangerprotected com.atlassian.oauth2.client.api.storage.config.ProviderTypeprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.aui.auipageobjects.AuiCheckboxprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.aui.auipageobjects.AuiCheckboxFields inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
adminMenuGeneralOption, adminMenuIcon, auiMessages, DEFAULT_CANCEL_BUTTON_ID, DEFAULT_FORM_FIELD_SELECTOR, DEFAULT_SUBMIT_BUTTON_SELECTOR, driver, finder, footer, forgedLicenseWarningBanner, I18N, NEXT_BUTTON_SELECTOR, pageBinder, selectedTopNavMenuItem, systemAdminMenu, TABLE_ROWS_SELECTOR, topNavApplicationsOption, topNavAuditLogOption, topNavDirectoriesOption, topNavGroupsOption, topNavigationBar, topNavigationBarItemsList, topNavUsersOption, VALUE_DATA_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthorizeOAuth2(String username, String password) voidauthorizeOAuth2(String username, String password, boolean validate) voidvoidintintgetUrl()voidinit()booleanprotected booleanReturns whether the content has loaded.booleanbooleanbooleanbooleanisSSL()booleanvoidvoidselectOauth2ConfigurationByName(String applinkName, com.atlassian.oauth2.client.api.storage.config.ProviderType provider) voidvoidsetFromEmail(String value) voidsetJndiLocation(String value) voidsetNotificationEmails(String value) voidsetOauth2ConfigurationById(String applinkId, com.atlassian.oauth2.client.api.storage.config.ProviderType provider) voidsetSmtpHost(String value) voidsetSmtpPassword(String value) voidsetSmtpPort(String value) voidsetSmtpUsername(String value) voidsetStartTLS(boolean value) voidsetSubjectPrefix(String value) voidsetTimeout(String value) voidsetUseSSL(boolean value) io.atlassian.fugue.Either<List<String>, MailServerPage.TestEmailDialog> Methods inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
bindAndWaitUntilPageLoad, clickAdminMenuIcon, clickApplicationsLinkInTopNavMenu, clickGeneralOptionInAdminMenu, clickWithJsById, executeJavascript, getAuiMessages, getForgedLicenseWarningBanner, getHeader, getJsExecutor, getPageLoadTimeout, getSelectedTopNavMenuItemID, getSelectedTopNavMenuItems, getSystemAdminDropdownMenu, initializeSystemAdminMenu, isSystemAdminDropdownMenuPresent, reloadWithoutWaitingForContent, selectOptionById, selectOptionByLabel, setTextField, setTextFieldValueAndPressEnter, toMillis, waitUntilAsyncFinished, waitUntilAsyncFinished, waitUntilContentLoaded, waitUntilPageLoad
-
Field Details
-
id
protected com.atlassian.pageobjects.elements.PageElement id -
notificationEmails
-
fromEmail
protected com.atlassian.pageobjects.elements.PageElement fromEmail -
subjectPrefix
protected com.atlassian.pageobjects.elements.PageElement subjectPrefix -
smtpOption
protected com.atlassian.pageobjects.elements.PageElement smtpOption -
jndiOption
protected com.atlassian.pageobjects.elements.PageElement jndiOption -
smtpHost
protected com.atlassian.pageobjects.elements.PageElement smtpHost -
smtpPort
protected com.atlassian.pageobjects.elements.PageElement smtpPort -
smtpUsername
protected com.atlassian.pageobjects.elements.PageElement smtpUsername -
smtpPassword
protected com.atlassian.pageobjects.elements.PageElement smtpPassword -
oauth2ConfigurationId
protected com.atlassian.pageobjects.elements.SelectElement oauth2ConfigurationId -
provider
protected com.atlassian.oauth2.client.api.storage.config.ProviderType provider -
timeout
protected com.atlassian.pageobjects.elements.PageElement timeout -
useSSL
protected com.atlassian.aui.auipageobjects.AuiCheckbox useSSL -
jndiLocation
protected com.atlassian.pageobjects.elements.PageElement jndiLocation -
testConnectionButton
protected com.atlassian.pageobjects.elements.PageElement testConnectionButton -
authorizeButton
protected com.atlassian.pageobjects.elements.PageElement authorizeButton -
updateButton
protected com.atlassian.pageobjects.elements.PageElement updateButton -
startTLS
protected com.atlassian.aui.auipageobjects.AuiCheckbox startTLS -
auiFlags
-
auiFlagContainer
protected com.atlassian.pageobjects.elements.PageElement auiFlagContainer -
passwordChanger
-
-
Constructor Details
-
MailServerPage
public MailServerPage()
-
-
Method Details
-
isContentLoaded
protected boolean isContentLoaded()Description copied from class:AbstractCrowdPageReturns whether the content has loaded. Used inAbstractCrowdPage.waitUntilContentLoaded(). Subclasses should override this method to wait for a distinguishing content to appear. E.g. a page title.- Overrides:
isContentLoadedin classAbstractCrowdPage
-
init
public void init() -
setNotificationEmails
-
setFromEmail
-
setSubjectPrefix
-
configureJndi
public void configureJndi() -
configureSMTP
public void configureSMTP() -
setSmtpHost
-
setSmtpPort
-
setSmtpUsername
-
setSmtpPassword
-
selectUsernameAndPasswordAuthentication
public void selectUsernameAndPasswordAuthentication() -
selectOauth2ConfigurationByName
public void selectOauth2ConfigurationByName(String applinkName, com.atlassian.oauth2.client.api.storage.config.ProviderType provider) -
setOauth2ConfigurationById
public void setOauth2ConfigurationById(String applinkId, com.atlassian.oauth2.client.api.storage.config.ProviderType provider) -
setTimeout
-
setJndiLocation
-
setUseSSL
public void setUseSSL(boolean value) -
setStartTLS
public void setStartTLS(boolean value) -
getNotificationEmails
-
getFromEmail
-
getSubjectPrefix
-
isSmtpSelected
public boolean isSmtpSelected() -
isJndiSelected
public boolean isJndiSelected() -
getSmtpHost
-
getSmtpPort
public int getSmtpPort() -
getSmtpUsername
-
getSmtpPassword
-
getOauth2ConfigurationId
-
getOauth2ConfigurationLabel
-
getAvailableAuthenticationMethods
-
getTimeout
public int getTimeout() -
isSSL
public boolean isSSL() -
isStartTLS
public boolean isStartTLS() -
getJndiLocation
-
tryOpenTestEmailDialog
public io.atlassian.fugue.Either<List<String>,MailServerPage.TestEmailDialog> tryOpenTestEmailDialog() throws com.atlassian.pageobjects.binder.PageBindingWaitException- Throws:
com.atlassian.pageobjects.binder.PageBindingWaitException
-
isAuthorizeOAuth2Allowed
public boolean isAuthorizeOAuth2Allowed() -
authorizeOAuth2
-
authorizeOAuth2
-
isSaveConfigurationAllowed
public boolean isSaveConfigurationAllowed() -
saveConfiguration
public void saveConfiguration() -
getValidationErrors
-
getActionError
-
getAuiFlags
-
getUrl
-