com.atlassian.confluence.selenium.client
Class PageOrderingTree

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.PageOrderingTree

public class PageOrderingTree
extends java.lang.Object


Nested Class Summary
static class PageOrderingTree.TreePosition
           
 
Constructor Summary
PageOrderingTree(ConfluenceSeleniumClient client)
           
 
Method Summary
 void expandTree(Page page)
          Expands the tree of the given page by clicking on the plus icon.
 java.lang.String getFirstChildNode(Page page)
          Returns the first child node id of the given page.
 java.lang.String getSortAlphabeticallyLocator(Page page)
          Returns the sort alphabetical link locator for the given page.
 java.lang.String getTreeNodeLocator(long pageId)
           
 java.lang.String getTreeNodeLocator(Page page)
          Returns the tree node locator for the page
 java.lang.String getUndoLocator(Page page)
          Returns the undo sort link locator for the given page
 void movePageAsChild(Page page, Page newParent)
           
 void sortAlphabetically(Page page)
          Clicks the sort alphabetical link of the given page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageOrderingTree

public PageOrderingTree(ConfluenceSeleniumClient client)
Method Detail

getFirstChildNode

public java.lang.String getFirstChildNode(Page page)
Returns the first child node id of the given page.


expandTree

public void expandTree(Page page)
Expands the tree of the given page by clicking on the plus icon.

Parameters:
page - the page to expand

sortAlphabetically

public void sortAlphabetically(Page page)
Clicks the sort alphabetical link of the given page

Parameters:
page - the page to sort its children alphabetically

getSortAlphabeticallyLocator

public java.lang.String getSortAlphabeticallyLocator(Page page)
Returns the sort alphabetical link locator for the given page.


getUndoLocator

public java.lang.String getUndoLocator(Page page)
Returns the undo sort link locator for the given page


getTreeNodeLocator

public java.lang.String getTreeNodeLocator(Page page)
Returns the tree node locator for the page


getTreeNodeLocator

public java.lang.String getTreeNodeLocator(long pageId)

movePageAsChild

public void movePageAsChild(Page page,
                            Page newParent)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.