public class EntityTreeElement extends BaseElement
Constructor and Description |
---|
EntityTreeElement() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasAttachment(String spaceName,
String pageName,
String fileName) |
boolean |
hasPage(String spaceName,
String pageName) |
boolean |
hasPage(String spaceName,
String pageName,
String pageTitle) |
boolean |
hasSpace(String spaceName) |
void |
lookupEntity(String entityReference)
Types the given text in the input box below the tree.
|
EntityTreeElement |
waitForAttachment(String spaceName,
String pageName,
String fileName)
Waits for the node corresponding to the specified attachments to be present but not selected.
|
EntityTreeElement |
waitForAttachment(String spaceName,
String pageName,
String fileName,
boolean selected)
Waits for the node corresponding to the specified attachment to be present.
|
EntityTreeElement |
waitForPage(String spaceName,
String pageName)
Waits for the node corresponding to the specified page to be present but not selected.
|
EntityTreeElement |
waitForPage(String spaceName,
String pageName,
boolean selected)
Waits for the node corresponding to the specified page to be present.
|
EntityTreeElement |
waitForPage(String spaceName,
String pageName,
String pageTitle)
Waits for the node corresponding to the specified page to be present but not selected.
|
EntityTreeElement |
waitForPage(String spaceName,
String pageName,
String pageTitle,
boolean selected)
Waits for the node corresponding to the specified page to be present.
|
EntityTreeElement |
waitForSpace(String spaceName)
Waits for the node corresponding to the specified space to be present but not selected.
|
EntityTreeElement |
waitForSpace(String spaceName,
boolean selected)
Waits for the node corresponding to the specified space to be present.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public EntityTreeElement waitForSpace(String spaceName)
spaceName
- the space namepublic EntityTreeElement waitForSpace(String spaceName, boolean selected)
spaceName
- the space nameselected
- true
if the space node should be selected, false
otherwisepublic boolean hasSpace(String spaceName)
spaceName
- the space nametrue
if the node corresponding to the specified space is present (selected or not), false
otherwisepublic EntityTreeElement waitForPage(String spaceName, String pageName)
spaceName
- the space containing the pagepageName
- the page namepublic EntityTreeElement waitForPage(String spaceName, String pageName, String pageTitle)
spaceName
- the space containing the pagepageName
- the page name (used as the node tool tip)pageTitle
- the page title (used as the node label)public EntityTreeElement waitForPage(String spaceName, String pageName, boolean selected)
spaceName
- the space containing the pagepageName
- the page nameselected
- true
if the page node should be selected, false
otherwisepublic EntityTreeElement waitForPage(String spaceName, String pageName, String pageTitle, boolean selected)
spaceName
- the space containing the pagepageName
- the page name (used as the node hint)pageTitle
- the page title (used as the node label)selected
- true
if the page node should be selected, false
otherwisepublic boolean hasPage(String spaceName, String pageName)
spaceName
- the space containing the pagepageName
- the page nametrue
if the specified page node is present, selected or not, false
otherwise; we assume
the page title equals the page namepublic boolean hasPage(String spaceName, String pageName, String pageTitle)
spaceName
- the space containing the pagepageName
- the page name (used as the node hint)pageTitle
- the page title (used as the node label)true
if the specified page node is present, selected or not, false
otherwisepublic EntityTreeElement waitForAttachment(String spaceName, String pageName, String fileName)
spaceName
- the space containing the pagepageName
- the page that holds the attachmentfileName
- the attachment file namepublic EntityTreeElement waitForAttachment(String spaceName, String pageName, String fileName, boolean selected)
spaceName
- the space containing the pagepageName
- the page that holds the attachmentfileName
- the attachment file nameselected
- true
if the attachment node should be selected, false
otherwisepublic boolean hasAttachment(String spaceName, String pageName, String fileName)
spaceName
- the space containing the pagepageName
- the page that holds the attachmentfileName
- the attachment file nametrue
if the specified attachment node is present, selected or not, false
otherwisepublic void lookupEntity(String entityReference)
entityReference
- the text to be typed in the input box below the tree, usually an entity referenceCopyright © 2004–2021 XWiki. All rights reserved.