com.atlassian.confluence.pageobjects.component.dialog
Class MovePageDialog
java.lang.Object
com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timeouts
@Inject
protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
MovePageDialog
public MovePageDialog()
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.