public class AnnotatableViewPage extends BaseElement
Constructor and Description |
---|
AnnotatableViewPage(ViewPage viewPage) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(String annotatedText,
String annotationText) |
void |
addAnnotation(String annotatedText,
String annotationText,
boolean wait) |
AnnotationsWindow |
beginAddAnnotation(String annotatedText)
Selects the specified text and opens the create annotation dialog.
|
boolean |
checkIfAnnotationsAreDisabled() |
boolean |
checkIfClickbuttonExists() |
void |
clickHideAnnotations() |
void |
clickShowAnnotations() |
void |
clickShowAnnotations(boolean wait)
Clicks on the checkbox to show the annotations and maybe waits for the annotations to be displayed.
|
void |
deleteAnnotationByID(String id) |
void |
deleteAnnotationByText(String annotatedText) |
String |
getAnnotationContentByText(String searchText) |
int |
getAnnotationCount() |
String |
getAnnotationIdByText(String searchText) |
int |
getCommentId(String annotationId) |
ViewPage |
getWrappedViewPage() |
void |
hideAnnotationsPane() |
void |
selectText(String annotationWord) |
AnnotationsPane |
showAnnotationsPane() |
AnnotationsPane |
showAnnotationsPane(boolean wait)
Open the annotation settings pane using the menu and maybe wait for it.
|
void |
simulateCTRL_M() |
void |
toggleAnnotationDisplayUsingShortcutKey(boolean wait)
Toggle the display of the annotations using the keyboard shortcut.
|
void |
waitForAnnotationsDisplayed()
Wait for at least one annotation to be displayed.
|
void |
waitforAnnotationWarningNotification() |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public AnnotatableViewPage(ViewPage viewPage)
public ViewPage getWrappedViewPage()
public AnnotationsWindow beginAddAnnotation(String annotatedText)
annotatedText
- the text to select and annotatepublic void deleteAnnotationByID(String id)
public void deleteAnnotationByText(String annotatedText)
public String getAnnotationIdByText(String searchText)
searchText
- the text selected by the annotation.public AnnotationsPane showAnnotationsPane()
public AnnotationsPane showAnnotationsPane(boolean wait)
wait
- whether to wait for the pane to be visible or notpublic void hideAnnotationsPane()
public void clickShowAnnotations()
public void clickShowAnnotations(boolean wait)
wait
- whether to wait or not for the annotations to be displayed; pass true
only if you know there
are existing annotations to displaypublic void waitForAnnotationsDisplayed()
public void clickHideAnnotations()
public int getAnnotationCount()
public void toggleAnnotationDisplayUsingShortcutKey(boolean wait)
wait
- whether to wait for the annotations to be displayed or not (as they may need to be fetched from the
server); pass true
only if you know that there are existing annotationspublic boolean checkIfClickbuttonExists()
public void simulateCTRL_M()
public void selectText(String annotationWord)
annotationWord
- string that will be selected on the screenpublic boolean checkIfAnnotationsAreDisabled()
public void waitforAnnotationWarningNotification()
public int getCommentId(String annotationId)
annotationId
- the annotation id.CommentsTab
.Copyright © 2004–2021 XWiki. All rights reserved.