Package com.atlassian.crowd.pageobjects
Class MailServerPage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
com.atlassian.crowd.pageobjects.MailServerPage
- All Implemented Interfaces:
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 com.atlassian.pageobjects.elements.PageElementprotected 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.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.pageobjects.elements.PageElementFields inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
auiMessages, DEFAULT_CANCEL_BUTTON_ID, DEFAULT_FORM_FIELD_SELECTOR, DEFAULT_SUBMIT_BUTTON_SELECTOR, driver, finder, footer, forgedLicenseWarningBanner, I18N, NEXT_BUTTON_SELECTOR, pageBinder, systemAdminMenu, TABLE_ROWS_SELECTOR, 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, clickWithJsById, executeJavascript, getAuiMessages, getForgedLicenseWarningBanner, getHeader, getJsExecutor, getSystemAdminDropdownMenu, initializeSystemAdminMenu, isSystemAdminDropdownMenuPresent, reloadWithoutWaitingForContent, selectOptionById, selectOptionByLabel, setTextField, setTextFieldValueAndPressEnter, waitUntilAsyncFinished, waitUntilAsyncFinished, waitUntilContentLoaded, waitUntilPageLoad
-
Field Details
-
id
protected com.atlassian.pageobjects.elements.PageElement id -
notificationEmails
protected com.atlassian.pageobjects.elements.PageElement 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.pageobjects.elements.PageElement 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.pageobjects.elements.PageElement 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
-
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
-