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 java.lang.String> matcher)
           
 com.atlassian.pageobjects.elements.query.TimedCondition breadCrumbWithSelectedText(java.lang.String text)
           
 ViewPage clickMove()
           
 MovePageDialog clickMoveAndExpectError()
           
 void clickMoveOnEdit()
           
 PageOrderingRootTree getBrowseTree()
           
 java.lang.String getErrorMessage()
           
 java.lang.String getNewParentPage()
           
 java.lang.String getNewSpace()
           
 java.lang.String getSpaceSelectedInBrowse()
           
 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(java.lang.String text)
          Returns true if the currently visible dialog page has the given text
 void ready()
           
 PageOrderingRootTree selectBrowsePanel()
           
 MovePageDialog selectLocationPanel()
           
 MovePageDialog selectRecentlyViewedPanel()
           
 MovePageDialog selectSearchPanel()
           
 MovePageDialog selectSpaceInBrowse(Space space)
           
 MovePageDialog setNewParentPage(java.lang.String newParentPage)
          Sets a new parent page in the advanced tab
 void setNewSpace(java.lang.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 waitForBreadcrumbs(Space space, Page parentPage)
           
 void waitUntilHidden()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
getDialog, getId, 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(java.lang.String text)

setNewParentPage

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


getNewParentPage

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

getNewSpace

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

setNewSpace

public void setNewSpace(java.lang.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()

clickMove

public ViewPage clickMove()

clickMoveOnEdit

public void clickMoveOnEdit()

ready

public final void ready()

waitUntilHidden

public void waitUntilHidden()
Overrides:
waitUntilHidden in class AbstractDialog

isTextPresent

public boolean isTextPresent(java.lang.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 java.lang.String> matcher)

getErrorMessage

public java.lang.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 java.lang.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()


Copyright © 2003-2014 Atlassian. All Rights Reserved.