|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.PageOrderingTree
public class PageOrderingTree
Nested Class Summary | |
---|---|
static class |
PageOrderingTree.TreePosition
|
Field Summary | |
---|---|
protected ConfluenceSeleniumClient |
client
|
Constructor Summary | |
---|---|
PageOrderingTree(ConfluenceSeleniumClient client)
|
Method Summary | |
---|---|
void |
clickPage(Page newParent)
|
void |
expandTree(Page page)
Expands the tree of the given page by clicking on the plus icon. |
java.lang.String |
getClickPageLocator(Page page)
Returns a locator for clicking on the link for a specified page in the tree |
java.lang.String |
getFirstChildNode(Page page)
Returns the first child node id of the given page. |
java.lang.String |
getSelectedName()
|
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 |
boolean |
isClickable(Page page)
|
boolean |
isPagePresent(Page page)
Returns true if the specified page is present in the tree (it may not be visible). |
boolean |
isPageVisible(Page page)
Returns true if the specified page is present and visible in the tree (i.e. |
boolean |
isPathOpen(java.util.List<Page> path)
|
boolean |
isShowingPageWithName(java.lang.String name)
|
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 |
Field Detail |
---|
protected final ConfluenceSeleniumClient client
Constructor Detail |
---|
public PageOrderingTree(ConfluenceSeleniumClient client)
Method Detail |
---|
public java.lang.String getFirstChildNode(Page page)
public void expandTree(Page page)
page
- the page to expandpublic void sortAlphabetically(Page page)
page
- the page to sort its children alphabeticallypublic java.lang.String getSelectedName()
public void clickPage(Page newParent)
public boolean isPagePresent(Page page)
public boolean isPageVisible(Page page)
public boolean isShowingPageWithName(java.lang.String name)
name
- the name of page to check for
public boolean isClickable(Page page)
page
- the page to test
public java.lang.String getSortAlphabeticallyLocator(Page page)
public java.lang.String getUndoLocator(Page page)
public boolean isPathOpen(java.util.List<Page> path)
path
-
public java.lang.String getTreeNodeLocator(Page page)
public java.lang.String getTreeNodeLocator(long pageId)
public java.lang.String getClickPageLocator(Page page)
public void movePageAsChild(Page page, Page newParent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |