com.atlassian.confluence.pageobjects.component.dialog
Class MovePageDialog

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
          extended by com.atlassian.confluence.pageobjects.component.dialog.MovePageDialog
All Implemented Interfaces:
PageComponent

public class MovePageDialog
extends AbstractDialog

Page Object to handle move page dialog


Field Summary
protected  com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
id
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, waiter
 
Constructor Summary
MovePageDialog()
           
 
Method Summary
 void assertText(org.hamcrest.Matcher<? super String> matcher)
           
 com.atlassian.pageobjects.elements.query.TimedCondition breadCrumbWithSelectedText(String text)
           
<T extends com.atlassian.pageobjects.Page>
T
clickCancel(Class<T> pageObjectClazz, Object... args)
          Click on the cancel button in the dialog.
 ViewPage clickMove()
           
 MovePageDialog clickMoveAndExpectError()
           
 MovePageDialog clickMoveAndExpectReorder()
           
 void clickMoveOnEdit()
           
 ViewPage clickReorder()
           
 MovePageDialog clickSearchButton()
           
 PageOrderingRootTree getBrowseTree()
           
 String getErrorMessage()
           
 String getNewParentPage()
           
 String getNewSpace()
           
 String getReorderPanelInformationMessage()
           
 List<String> getReorderSiblingPageTitles()
           
 ReorderTree getReorderTree()
           
 String getSearchResultCountMessage()
           
 String getSpaceSelectedInBrowse()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isCancelLinkEnabled()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isMoveButtonEnabled()
           
 boolean isSpacePresentInBrowse(Space space)
          Returns true if the given space is available in the space select of the browse panel
 boolean isSpaceSelectEnabledInBrowse()
           
 boolean isTextPresent(String text)
          Returns true if the currently visible dialog page has the given text
 void ready()
           
 PageOrderingRootTree selectBrowsePanel()
           
 MovePageDialog selectLocationPanel()
           
 MovePageDialog selectRecentlyViewedPanel()
           
 MovePageDialog selectReorderCheckbox()
           
 MovePageDialog selectSearchPanel()
           
 MovePageDialog selectSpaceInBrowse(Space space)
           
 MovePageDialog setNewParentPage(String newParentPage)
          Sets a new parent page in the advanced tab
 void setNewSpace(String newSpace)
          This is a very naive implementation where it searches for the newSpace but assumes the first element in the autocomplete is that space.
 MovePageDialog typeInNewParentPage(String newParentPage)
          Sets a new parent page in the advanced tab.
 MovePageDialog typeSearchQuery(String query)
           
 MovePageDialog waitForBreadcrumbs(Space space, Page parentPage)
           
 void waitForParentPageAutocompleteToClose()
           
 void waitUntilHidden()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
getDialog, getHeight, getId, getTitle, getWidth, isVisible, isVisibleTimed, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilVisible
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeouts

@Inject
protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
Constructor Detail

MovePageDialog

public MovePageDialog()
Method Detail

breadCrumbWithSelectedText

public com.atlassian.pageobjects.elements.query.TimedCondition breadCrumbWithSelectedText(String text)

setNewParentPage

public MovePageDialog setNewParentPage(String newParentPage)
Sets a new parent page in the advanced tab


typeInNewParentPage

public MovePageDialog typeInNewParentPage(String newParentPage)
Sets a new parent page in the advanced tab. This method waits till the dropdown appears, but does not select the item.


getNewParentPage

public String getNewParentPage()
Returns:
the new parent page set in the advanced tab

getNewSpace

public String getNewSpace()
Returns:
the new space set in the advanced tab

setNewSpace

public void setNewSpace(String newSpace)
This is a very naive implementation where it searches for the newSpace but assumes the first element in the autocomplete is that space.


isMoveButtonEnabled

public com.atlassian.pageobjects.elements.query.TimedCondition isMoveButtonEnabled()

isCancelLinkEnabled

public com.atlassian.pageobjects.elements.query.TimedCondition isCancelLinkEnabled()

clickMove

public ViewPage clickMove()

clickReorder

public ViewPage clickReorder()

clickMoveOnEdit

public void clickMoveOnEdit()

ready

public final void ready()

waitUntilHidden

public void waitUntilHidden()
Overrides:
waitUntilHidden in class AbstractDialog

isTextPresent

public boolean isTextPresent(String text)
Returns true if the currently visible dialog page has the given text

Parameters:
text - the text to search for

assertText

public void assertText(org.hamcrest.Matcher<? super String> matcher)

getErrorMessage

public String getErrorMessage()

isSpacePresentInBrowse

public boolean isSpacePresentInBrowse(Space space)
Returns true if the given space is available in the space select of the browse panel


isSpaceSelectEnabledInBrowse

public boolean isSpaceSelectEnabledInBrowse()

selectSpaceInBrowse

public MovePageDialog selectSpaceInBrowse(Space space)

getSpaceSelectedInBrowse

public String getSpaceSelectedInBrowse()
Returns:
the selected option value in the space select of the browse panel

getBrowseTree

public PageOrderingRootTree getBrowseTree()

selectBrowsePanel

public PageOrderingRootTree selectBrowsePanel()

selectLocationPanel

public MovePageDialog selectLocationPanel()

selectSearchPanel

public MovePageDialog selectSearchPanel()

selectRecentlyViewedPanel

public MovePageDialog selectRecentlyViewedPanel()

waitForBreadcrumbs

public MovePageDialog waitForBreadcrumbs(Space space,
                                         Page parentPage)

clickMoveAndExpectError

public MovePageDialog clickMoveAndExpectError()

clickMoveAndExpectReorder

public MovePageDialog clickMoveAndExpectReorder()

clickCancel

public <T extends com.atlassian.pageobjects.Page> T clickCancel(Class<T> pageObjectClazz,
                                                                Object... args)
Click on the cancel button in the dialog. Should not reload the page.

Parameters:
pageObjectClazz - the page object to bind to after clicking
args - optionally the arguments for the page object to bind
Returns:
the view from the original page that triggered the dialog.

waitForParentPageAutocompleteToClose

public void waitForParentPageAutocompleteToClose()

typeSearchQuery

public MovePageDialog typeSearchQuery(String query)

clickSearchButton

public MovePageDialog clickSearchButton()

getSearchResultCountMessage

public String getSearchResultCountMessage()

selectReorderCheckbox

public MovePageDialog selectReorderCheckbox()

getReorderPanelInformationMessage

public String getReorderPanelInformationMessage()

getReorderSiblingPageTitles

public List<String> getReorderSiblingPageTitles()

getReorderTree

public ReorderTree getReorderTree()


Copyright © 2003–2015 Atlassian. All rights reserved.