public class PageOrderingTree extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PageOrderingTree.TreePosition
Deprecated.
since 5.7, use
TreePosition |
Modifier and Type | Field and Description |
---|---|
protected ConfluenceSeleniumClient |
client |
Constructor and Description |
---|
PageOrderingTree(ConfluenceSeleniumClient client) |
Modifier and Type | Method and Description |
---|---|
void |
clickPage(Page newParent) |
void |
expandTree(Page page)
Expands the tree of the given page by clicking on the plus icon.
|
String |
getClickPageLocator(Page page)
Returns a locator for clicking on the link for a specified page in the tree
|
String |
getFirstChildNode(Page page)
Returns the first child node id of the given page.
|
String |
getSelectedName() |
String |
getSortAlphabeticallyLocator(Page page)
Returns the sort alphabetical link locator for the given page.
|
String |
getTreeNodeLocator(long pageId) |
String |
getTreeNodeLocator(Page page)
Returns the tree node locator for the page
|
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(List<Page> path) |
boolean |
isShowingPageWithName(String name) |
void |
movePageAsChild(Page page,
Page newParent) |
void |
sortAlphabetically(Page page)
Clicks the sort alphabetical link of the given page
|
protected final ConfluenceSeleniumClient client
public PageOrderingTree(ConfluenceSeleniumClient client)
public 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 String getSelectedName()
public void clickPage(Page newParent)
public boolean isPagePresent(Page page)
public boolean isPageVisible(Page page)
public boolean isShowingPageWithName(String name)
name
- the name of page to check forpublic boolean isClickable(Page page)
page
- the page to testpublic String getSortAlphabeticallyLocator(Page page)
public String getUndoLocator(Page page)
public boolean isPathOpen(List<Page> path)
path
- public String getTreeNodeLocator(Page page)
public String getTreeNodeLocator(long pageId)
public String getClickPageLocator(Page page)
Copyright © 2003–2015 Atlassian. All rights reserved.