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 |
dragAndDropPageOutSide(Page page,
String locationOutSide) |
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 |
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 |
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 void clickPage(Page newParent)
public boolean isShowingPageWithName(String name)
name
- the name of page to check forpublic String getSortAlphabeticallyLocator(Page page)
public String getUndoLocator(Page page)
public String getTreeNodeLocator(Page page)
public String getTreeNodeLocator(long pageId)
public String getClickPageLocator(Page page)
Copyright © 2003–2017 Atlassian. All rights reserved.