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
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.atlassian.pageobjects.elements.PageElement
protected AuiFlags
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.SelectElement
protected PasswordChanger
protected com.atlassian.oauth2.client.api.storage.config.ProviderType
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authorizeOAuth2
(String username, String password) void
authorizeOAuth2
(String username, String password, boolean validate) void
void
int
int
getUrl()
void
init()
boolean
protected boolean
Returns whether the content has loaded.boolean
boolean
boolean
boolean
isSSL()
boolean
void
void
selectOauth2ConfigurationByName
(String applinkName, com.atlassian.oauth2.client.api.storage.config.ProviderType provider) void
void
setFromEmail
(String value) void
setJndiLocation
(String value) void
setNotificationEmails
(String value) void
setOauth2ConfigurationById
(String applinkId, com.atlassian.oauth2.client.api.storage.config.ProviderType provider) void
setSmtpHost
(String value) void
setSmtpPassword
(String value) void
setSmtpPort
(String value) void
setSmtpUsername
(String value) void
setStartTLS
(boolean value) void
setSubjectPrefix
(String value) void
setTimeout
(String value) void
setUseSSL
(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:AbstractCrowdPage
Returns 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:
isContentLoaded
in 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
-