com.atlassian.confluence.selenium.client
Class MovePageDialog

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.Dialog
      extended by com.atlassian.confluence.selenium.client.MovePageDialog

public class MovePageDialog
extends Dialog


Field Summary
static java.lang.String ACTION_LINK_ID
           
static java.lang.String NEW_SPACE_KEY_SELECT_ID
           
static java.lang.String PANEL_BROWSE
           
static java.lang.String PANEL_HISTORY
           
static java.lang.String PANEL_LOCATION
           
static java.lang.String PANEL_ORDERING
           
static java.lang.String PANEL_SEARCH
           
 
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog
client, id
 
Constructor Summary
MovePageDialog(ConfluenceSeleniumClient client)
           
 
Method Summary
 void cancel()
           
 void clickMoveButton()
          Click to Confirm the move on the View page.
 void clickOKButton()
          Click to Confirm the move on the Edit page.
 void clickParentPageAutocomplete(java.lang.String optionName)
           
 void clickParentPageInBrowseTree(Page parentPage)
          Clicks a parent Page in the dialog's Browse tree and waits for the breadcrumbs to be updated.
 void clickPositionOfSiblingList(int position)
          The re-order page of the dialog has a list of siblings.
 void clickReorderButton()
           
 void clickReorderThenMoveButton()
          Click the reorder button and wait for the new panel to finish loading before returning.
 void clickSpaceAutocomplete(java.lang.String optionName)
           
 void doSearch()
           
 java.lang.String getBrowsePanelSpace()
           
 PageOrderingRootTree getBrowseTree()
           
 java.lang.String getErrorMessage()
           
 java.util.List<java.lang.String> getListOfSiblingTitles()
          When the dialog is showing the 'reorder' page this method will return a List of the names of the siblings beneath the selected parent, including the page being moved here.
 java.lang.String getNewSpaceName()
           
 java.lang.String getReorderPanelInformationMessage()
           
 java.lang.String getSearchResultCountMessage()
           
 java.lang.String getSelectedPanelId()
           
static MovePageDialog openFromViewPage(ConfluenceSeleniumClient client)
           
 void parentPageAutocomplete(java.lang.String parentPageTitleSubstring)
           
 MovePageDialog selectBrowsePanel()
           
 MovePageDialog selectLocationPanel()
           
 MovePageDialog selectRecentlyViewedPanel()
           
 MovePageDialog selectSearchPanel()
           
 void selectSpaceOnBrowsePanel(Space space)
          Change the selected space on the browse panel.
 void setParentPage(Page parentPage)
           
 void spaceAutocomplete(java.lang.String spaceName)
           
 void typeSearchQuery(java.lang.String queryText)
           
 void waitForBreadcrumbs(Space space, Page parentPage)
          Waits until the location breadcrumbs match the passed Space and parent Page.
 void waitForBrowsePanel()
           
 void waitForErrorMessage()
           
 void waitForPage(Page page)
           
 void waitForParentPageAutocompleteToClose()
          Waits until the autocomplete dropdown no longer appears for the Parent Page field of the "Known Location" panel.
 void waitForParentPageInBreadcrumbs(Page parentPage)
           
 void waitForSpaceAtBrowseTreeRoot(Space space)
          On the Browse panel, waits until the root node shows the required Space name.
 
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog
clickButton, clickCancel, clickLink, clickPageMenu, getId, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilClosed, waitUntilVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_LINK_ID

public static final java.lang.String ACTION_LINK_ID
See Also:
Constant Field Values

NEW_SPACE_KEY_SELECT_ID

public static final java.lang.String NEW_SPACE_KEY_SELECT_ID
See Also:
Constant Field Values

PANEL_LOCATION

public static final java.lang.String PANEL_LOCATION
See Also:
Constant Field Values

PANEL_SEARCH

public static final java.lang.String PANEL_SEARCH
See Also:
Constant Field Values

PANEL_HISTORY

public static final java.lang.String PANEL_HISTORY
See Also:
Constant Field Values

PANEL_BROWSE

public static final java.lang.String PANEL_BROWSE
See Also:
Constant Field Values

PANEL_ORDERING

public static final java.lang.String PANEL_ORDERING
See Also:
Constant Field Values
Constructor Detail

MovePageDialog

public MovePageDialog(ConfluenceSeleniumClient client)
Method Detail

openFromViewPage

public static MovePageDialog openFromViewPage(ConfluenceSeleniumClient client)

selectLocationPanel

public MovePageDialog selectLocationPanel()

selectSearchPanel

public MovePageDialog selectSearchPanel()

typeSearchQuery

public void typeSearchQuery(java.lang.String queryText)

doSearch

public void doSearch()

getSearchResultCountMessage

public java.lang.String getSearchResultCountMessage()

getReorderPanelInformationMessage

public java.lang.String getReorderPanelInformationMessage()

selectRecentlyViewedPanel

public MovePageDialog selectRecentlyViewedPanel()

selectBrowsePanel

public MovePageDialog selectBrowsePanel()

getSelectedPanelId

public java.lang.String getSelectedPanelId()

selectSpaceOnBrowsePanel

public void selectSpaceOnBrowsePanel(Space space)
Change the selected space on the browse panel.


waitForSpaceAtBrowseTreeRoot

public void waitForSpaceAtBrowseTreeRoot(Space space)
On the Browse panel, waits until the root node shows the required Space name.


clickParentPageInBrowseTree

public void clickParentPageInBrowseTree(Page parentPage)
Clicks a parent Page in the dialog's Browse tree and waits for the breadcrumbs to be updated.


getErrorMessage

public java.lang.String getErrorMessage()

waitForErrorMessage

public void waitForErrorMessage()

waitForBrowsePanel

public void waitForBrowsePanel()

waitForPage

public void waitForPage(Page page)

getBrowsePanelSpace

public java.lang.String getBrowsePanelSpace()
Returns:
the label of the space currently selected in the browse panel of the dialog

getBrowseTree

public PageOrderingRootTree getBrowseTree()

clickMoveButton

public void clickMoveButton()
Click to Confirm the move on the View page.


clickReorderButton

public void clickReorderButton()

clickReorderThenMoveButton

public void clickReorderThenMoveButton()
Click the reorder button and wait for the new panel to finish loading before returning.


clickOKButton

public void clickOKButton()
Click to Confirm the move on the Edit page. Waits for the Dialog to close.


cancel

public void cancel()

getListOfSiblingTitles

public java.util.List<java.lang.String> getListOfSiblingTitles()
When the dialog is showing the 'reorder' page this method will return a List of the names of the siblings beneath the selected parent, including the page being moved here.


clickPositionOfSiblingList

public void clickPositionOfSiblingList(int position)
The re-order page of the dialog has a list of siblings. Position 1 is before the first, position 2 is after the first, ... position n is after the last.


parentPageAutocomplete

public void parentPageAutocomplete(java.lang.String parentPageTitleSubstring)

waitForParentPageAutocompleteToClose

public void waitForParentPageAutocompleteToClose()
Waits until the autocomplete dropdown no longer appears for the Parent Page field of the "Known Location" panel.


clickParentPageAutocomplete

public void clickParentPageAutocomplete(java.lang.String optionName)

setParentPage

public void setParentPage(Page parentPage)

waitForParentPageInBreadcrumbs

public void waitForParentPageInBreadcrumbs(Page parentPage)

waitForBreadcrumbs

public void waitForBreadcrumbs(Space space,
                               Page parentPage)
Waits until the location breadcrumbs match the passed Space and parent Page.

Parameters:
space - the Space for the location - required
parentPage - the parent Page for the location. If null the location will be at the top level of the Space

getNewSpaceName

public java.lang.String getNewSpaceName()

spaceAutocomplete

public void spaceAutocomplete(java.lang.String spaceName)

clickSpaceAutocomplete

public void clickSpaceAutocomplete(java.lang.String optionName)


Copyright © 2003-2014 Atlassian. All Rights Reserved.