com.atlassian.confluence.pageobjects.page
Class SpaceDirectoryPage

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
      extended by com.atlassian.confluence.pageobjects.page.SpaceDirectoryPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page

public class SpaceDirectoryPage
extends ConfluenceAbstractPage


Nested Class Summary
static class SpaceDirectoryPage.SystemTab
           
static class SpaceDirectoryPage.TeamLabelTab
           
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
driver, jsQueryFactory, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
SpaceDirectoryPage()
           
 
Method Summary
 void bindTracer()
           
 SpaceDirectoryPage clearSearchBox()
          Clear the search field.
 SpaceDirectoryPage clickAddFavouriteLink(Space space)
           
 SpaceDirectoryPage clickNextPage()
          Switch to the next page and wait until the space list updates.
 SpaceDirectoryPage clickPage(java.lang.String pageName)
          Switch to the named page and wait until the space list updates.
 SpaceDirectoryPage clickPreviousPage()
          Switch to the previous page and wait until the space list updates.
 ViewSpaceSummaryPage clickSpaceSummaryLink(Space space)
           
 SpaceDirectoryPage clickSystemTab(SpaceDirectoryPage.SystemTab tab)
          Select the given tab, and wait for the corresponding space list to be shown.
 SpaceDirectoryPage clickTeamLabelLozenge(Space space, java.lang.String labelName)
           
 SpaceDirectoryPage clickTeamLabelTab(SpaceDirectoryPage.TeamLabelTab tab)
          Select the given tab, and wait for the corresponding space list to be shown.
 void doWait()
           
 java.lang.String getCurrentPage()
           
 int getCurrentPageResultCount()
           
 int getPageCount()
           
 java.util.List<java.lang.String> getSpaceKeys()
           
 java.lang.String getSpaceLogoImageSource(Space space)
           
 java.lang.String getSpaceName(Space space)
           
 java.util.List<java.lang.String> getSpaceNames()
           
 java.lang.String getUrl()
           
 boolean isNoMatchingResultsMessageVisible()
           
 boolean isNoSpacesMessageVisible()
           
 boolean isSpaceFavouritesVisible(Space space)
           
 boolean isSpacePresent(Space space)
           
 boolean isSystemTabPresent(SpaceDirectoryPage.SystemTab tab)
           
 boolean isTeamLabelLozengePresent(Space space, java.lang.String labelName)
           
 SpaceDirectoryPage search(java.lang.String query)
          Type in the search field and wait until search results are returned.
 SearchResultPage submitSearch()
          Perform a site search using the value in the search field, limited to space entities.
 ViewPage submitSearchForOneResult(AbstractPageEntity pageEntity)
          Jump to the home page of the space matching the value in the search field.
 
Methods inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
back, getAlert, getComponent, getHeader, getInlineDialog, getMainHeader, getMetadata, getMetadataLong, getPageHeadingColor, isDarkFeatureEnabled, isLoggedIn, openAddMenu, openBrowseMenu, openHelpMenu, openToolsMenu, openUserMenu, sendKeyboardShortcut, sendKeyboardShortcutAndWaitForCondition, setSetupComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceDirectoryPage

public SpaceDirectoryPage()
Method Detail

doWait

public void doWait()
Overrides:
doWait in class ConfluenceAbstractPage

bindTracer

public void bindTracer()

getUrl

public java.lang.String getUrl()

search

public SpaceDirectoryPage search(java.lang.String query)
Type in the search field and wait until search results are returned.

Parameters:
query - the search query

clearSearchBox

public SpaceDirectoryPage clearSearchBox()
Clear the search field. Does *not* wait until the search results are reset, since we don't refresh the results if the search string is too short.


isNoSpacesMessageVisible

public boolean isNoSpacesMessageVisible()

isNoMatchingResultsMessageVisible

public boolean isNoMatchingResultsMessageVisible()

getCurrentPageResultCount

public int getCurrentPageResultCount()

getPageCount

public int getPageCount()

clickPreviousPage

public SpaceDirectoryPage clickPreviousPage()
Switch to the previous page and wait until the space list updates.


clickNextPage

public SpaceDirectoryPage clickNextPage()
Switch to the next page and wait until the space list updates.


clickPage

public SpaceDirectoryPage clickPage(java.lang.String pageName)
Switch to the named page and wait until the space list updates.


getCurrentPage

public java.lang.String getCurrentPage()

submitSearch

public SearchResultPage submitSearch()
Perform a site search using the value in the search field, limited to space entities.


submitSearchForOneResult

public ViewPage submitSearchForOneResult(AbstractPageEntity pageEntity)
Jump to the home page of the space matching the value in the search field.


clickSpaceSummaryLink

public ViewSpaceSummaryPage clickSpaceSummaryLink(Space space)

clickAddFavouriteLink

public SpaceDirectoryPage clickAddFavouriteLink(Space space)

isSpaceFavouritesVisible

public boolean isSpaceFavouritesVisible(Space space)

clickSystemTab

public SpaceDirectoryPage clickSystemTab(SpaceDirectoryPage.SystemTab tab)
Select the given tab, and wait for the corresponding space list to be shown.


isSystemTabPresent

public boolean isSystemTabPresent(SpaceDirectoryPage.SystemTab tab)

clickTeamLabelTab

public SpaceDirectoryPage clickTeamLabelTab(SpaceDirectoryPage.TeamLabelTab tab)
Select the given tab, and wait for the corresponding space list to be shown.


isTeamLabelLozengePresent

public boolean isTeamLabelLozengePresent(Space space,
                                         java.lang.String labelName)

clickTeamLabelLozenge

public SpaceDirectoryPage clickTeamLabelLozenge(Space space,
                                                java.lang.String labelName)

isSpacePresent

public boolean isSpacePresent(Space space)

getSpaceName

public java.lang.String getSpaceName(Space space)

getSpaceNames

public java.util.List<java.lang.String> getSpaceNames()

getSpaceKeys

public java.util.List<java.lang.String> getSpaceKeys()

getSpaceLogoImageSource

public java.lang.String getSpaceLogoImageSource(Space space)


Copyright © 2003-2014 Atlassian. All Rights Reserved.