|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.PageView
public class PageView
A helper for a Page or Blogpost view screen.
Constructor Summary | |
---|---|
PageView(ConfluenceSeleniumClient client)
|
Method Summary | |
---|---|
void |
addTextComment(java.lang.String comment,
boolean waitForPageToLoad)
Type the given comment in the text comment editor and click save. |
void |
clickBreadcrumbEllipsis()
|
void |
clickLoadCommentRte(boolean waitForPageToLoad)
Clicks the rte comment link. |
void |
clickOnEmbeddedImageLink()
Clicks on an embedded image link and waits for the page to load |
PagePermissionsEditor |
clickPermissionsMenuItem()
Clicks the "Permissions" menu item, opening the Permissions dialog. |
PagePermissionsEditor |
clickPermissionsMetadataIcon()
Clicks the permissions "padlock" shown in the metadata area. |
void |
clickShowComment()
|
PageDiff |
clickViewChange()
|
int |
getCommentCount()
|
java.lang.String |
getContent()
|
int |
getContentSelectorCount(java.lang.String selector)
Counts the number of elements matching the selector in the content |
java.lang.String |
getEvalOnContent(java.lang.String javascript)
Executes a javascript expression to return a value. |
int |
getImageCountWithClass(java.lang.String className)
Returns the number of confluence-embedded-images with the specified class name. |
java.util.List<java.lang.String> |
getLabels()
|
int |
getNonThumbnailImageCount()
|
java.lang.String |
getNormalisedContent()
Returns a version of getContent() that should be the same in all browsers. |
int |
getThumbnailImageCount()
|
java.lang.String |
getTitle()
|
void |
hideVersionComment()
|
boolean |
isCommentsShowing()
|
boolean |
isPageElementRightAligned(java.lang.String element,
PageView page)
Checks if an element on a given page is right-aligned. |
boolean |
isShowCommentPresent()
|
boolean |
isViewing(LinkableContent linkableContent)
Returns true if the window is on the view screen for the passed Page. |
PageInfo |
openInfoPage()
Clicks the "Permissions" menu item, opening the Permissions dialog. |
MovePageDialog |
openMovePageDialog(ConfluenceSeleniumClient client)
|
void |
showVersionComment()
|
void |
typeTextComment(java.lang.String comment)
Type the given comment in the text comment editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageView(ConfluenceSeleniumClient client)
Method Detail |
---|
public boolean isCommentsShowing()
public int getCommentCount()
public void typeTextComment(java.lang.String comment)
comment
- String comment to typepublic void addTextComment(java.lang.String comment, boolean waitForPageToLoad)
comment
- String comment to typewaitForPageToLoad
- whether to wait for the page to load after savepublic void clickLoadCommentRte(boolean waitForPageToLoad)
waitForPageToLoad
- whether to wait for the page to load after clickingpublic void showVersionComment()
public void hideVersionComment()
public PageDiff clickViewChange()
public PagePermissionsEditor clickPermissionsMetadataIcon()
public PagePermissionsEditor clickPermissionsMenuItem()
public PageInfo openInfoPage()
public MovePageDialog openMovePageDialog(ConfluenceSeleniumClient client)
public boolean isViewing(LinkableContent linkableContent)
public boolean isPageElementRightAligned(java.lang.String element, PageView page)
element
- The DOM element to check alignment of.page
- The page object
public java.util.List<java.lang.String> getLabels()
public void clickShowComment()
public boolean isShowCommentPresent()
public java.lang.String getEvalOnContent(java.lang.String javascript)
public java.lang.String getContent()
public java.lang.String getNormalisedContent()
getContent()
that should be the same in all browsers.
The content is:
public int getContentSelectorCount(java.lang.String selector)
public void clickOnEmbeddedImageLink()
public int getImageCountWithClass(java.lang.String className)
public int getThumbnailImageCount()
public int getNonThumbnailImageCount()
public void clickBreadcrumbEllipsis()
public java.lang.String getTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |