Package com.atlassian.crowd.pageobjects
Class AbstractCrowdPage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
- All Implemented Interfaces:
CrowdPage,com.atlassian.pageobjects.Page
- Direct Known Subclasses:
AbstractChangePasswordPage,AbstractLoginPage,AbstractPrincipalPage,AbstractSetupPage,AccessDeniedPage,AddApplicationDetailsPage,AddApplicationOngoingStepPage,AddGroupPage,ApplicationAdministratorsPage,ApplicationAuthenticationTestPage,ApplicationDetailsPage,ApplicationDetailsPage.RemoveApplicationPage,ApplicationDirectoriesPage,ApplicationOptionsPage,ApplicationPermissionsPage,ApplicationRemoteAddressesPage,ApplicationSSOPage,ApplicationUsersPage,BackupPage,BrowseApplinksPage,BrowseAuditLogPage,ChangeEmailPage,ChangeEmailPendingPage,ChangeExpiredPasswordSuccessfulPage,ChooseImporterPage,ClusterMonitoringPage,ConfigureAuditLogPage,ConfigurePruningPage,CreateAzureAdPage,CreateConnectorPage,CreateCustomDirectoryPage,CreateDelegatedDirectoryPage,CreateDirectoryChooseDirectoryTypePage,CreateDirectoryPage,CreateInternalDirectoryPage,CreateRemoteCrowdPage,CrowdConsole,CrowdRestorePage,CrowdWebTestCase.GenericPage,CrowdXsrfProtectionTest.PageWithError,CsvImporterConfigurationPage,CsvImporterConfirmationPage,CsvImporterMappingPage,CsvImporterResultsPage,CurrentSessionsPage,EmailChangedSuccessfullyPage,EmailChangeUnhandledErrorPage,FiltersPage,ForgottenLoginDetailsPage,GeneralOptionsPage,GLABrowseGroupsPage,GLABrowserUsersBelongingToGroupPage,InvalidEmailChangeTokenPage,JndiConnectionPoolPage,LicensePage,LicensesPage,LogoutPage,LookAndFeelPage,MailServerPage,MailTemplatePage,PruningAdministrationPage,RemoveDirectoryPage,RemoveGroupPage,RemovePrincipalPage,ResetPasswordConfirmationPage,ResetPasswordPage,SessionConfigurationPage,SsoDisabledPage,ViewApplicationDirectoriesPage,ViewDirectory,ViewGroupAdministrationPage,ViewGroupMembersPage,ViewGroupNestedMembers,ViewGroupPage,ViewProfileGroupsPage,ViewProfilePage
Base class for Crowd pages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuiMessagesprotected static final Stringstatic final Stringstatic final Stringprotected org.openqa.selenium.WebDriverprotected com.atlassian.pageobjects.elements.PageElementFinderprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected static final ResourceBundleprotected static final Stringprotected com.atlassian.pageobjects.PageBinderprotected SystemAdminDropdownMenustatic final org.openqa.selenium.Byprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TbindAndWaitUntilPageLoad(Class<T> pageClass, Object... vars) voidclickWithJsById(com.atlassian.pageobjects.elements.PageElement pageElement) protected voidexecuteJavascript(String jscode, Object... args) com.atlassian.pageobjects.elements.PageElementorg.openqa.selenium.JavascriptExecutorvoidprotected booleanReturns whether the content has loaded.booleanvoidstatic voidselectOptionById(com.atlassian.pageobjects.elements.SelectElement select, String id) static voidselectOptionByLabel(com.atlassian.pageobjects.elements.SelectElement select, String label) protected voidsetTextField(com.atlassian.pageobjects.elements.PageElement element, CharSequence value) protected voidsetTextFieldValueAndPressEnter(com.atlassian.pageobjects.elements.PageElement element, CharSequence value) protected voidstatic voidwaitUntilAsyncFinished(org.openqa.selenium.WebDriver driver) protected voidprotected final voidWaits until the page has fully loaded.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.pageobjects.Page
getUrl
-
Field Details
-
I18N
-
DEFAULT_SUBMIT_BUTTON_SELECTOR
- See Also:
-
DEFAULT_FORM_FIELD_SELECTOR
- See Also:
-
TABLE_ROWS_SELECTOR
public static final org.openqa.selenium.By TABLE_ROWS_SELECTOR -
DEFAULT_CANCEL_BUTTON_ID
- See Also:
-
NEXT_BUTTON_SELECTOR
- See Also:
-
VALUE_DATA_ATTRIBUTE
- See Also:
-
pageBinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder -
auiMessages
-
finder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder finder -
driver
@Inject protected org.openqa.selenium.WebDriver driver -
systemAdminMenu
-
forgedLicenseWarningBanner
protected com.atlassian.pageobjects.elements.PageElement forgedLicenseWarningBanner
-
-
Constructor Details
-
AbstractCrowdPage
public AbstractCrowdPage()
-
-
Method Details
-
initializeSystemAdminMenu
public void initializeSystemAdminMenu() -
waitUntilPageLoad
protected final void waitUntilPageLoad()Waits until the page has fully loaded. -
bindAndWaitUntilPageLoad
-
getHeader
-
isContentLoaded
protected boolean isContentLoaded()Returns whether the content has loaded. Used inwaitUntilContentLoaded(). Subclasses should override this method to wait for a distinguishing content to appear. E.g. a page title. -
waitUntilContentLoaded
protected void waitUntilContentLoaded() -
setTextField
protected void setTextField(com.atlassian.pageobjects.elements.PageElement element, CharSequence value) -
setTextFieldValueAndPressEnter
protected void setTextFieldValueAndPressEnter(com.atlassian.pageobjects.elements.PageElement element, CharSequence value) -
executeJavascript
-
getAuiMessages
-
isSystemAdminDropdownMenuPresent
public boolean isSystemAdminDropdownMenuPresent()- Specified by:
isSystemAdminDropdownMenuPresentin interfaceCrowdPage
-
reloadWithoutWaitingForContent
public void reloadWithoutWaitingForContent() -
waitUntilAsyncFinished
protected void waitUntilAsyncFinished() -
waitUntilAsyncFinished
public static void waitUntilAsyncFinished(org.openqa.selenium.WebDriver driver) -
getForgedLicenseWarningBanner
public com.atlassian.pageobjects.elements.PageElement getForgedLicenseWarningBanner() -
getSystemAdminDropdownMenu
-
getJsExecutor
public org.openqa.selenium.JavascriptExecutor getJsExecutor() -
clickWithJsById
public void clickWithJsById(@Nonnull com.atlassian.pageobjects.elements.PageElement pageElement) -
selectOptionByLabel
public static void selectOptionByLabel(com.atlassian.pageobjects.elements.SelectElement select, String label) -
selectOptionById
public static void selectOptionById(com.atlassian.pageobjects.elements.SelectElement select, String id)
-