| java.lang.Object | |
| ↳ | com.atlassian.confluence.selenium.client.Editor |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Editor.EditorMode | |||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | EDITOR_ID | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| EDITOR_TIMEOUT_MILLIS | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add a comment from a page view.
| |||||||||||
Adds the specified error message to the screen.
| |||||||||||
Has the unfortunate side effect of losing your cursor position, blame tinymce.
| |||||||||||
For use when opening the macro browser manually, e.g.
| |||||||||||
Retrieve a macro's parameters from the editor.
| |||||||||||
Returns a version of
getContent() that should be the same in all browsers. | |||||||||||
This method is deprecated.
since 4.0 Use
getContent() instead
| |||||||||||
Gets the value in the editor Title field.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Returns true if Confluence considers the editor content to have changed.
| |||||||||||
Opens the image dialog if in RTE mode.
| |||||||||||
Encapsulate the editor representation of macros in a single place for testing.
| |||||||||||
Returns true if permissions have been set in the editor.
| |||||||||||
Logs the given user in, edits the given content and switches to the RTE.
| |||||||||||
Click the link to merge an existing draft with the current editor content.
| |||||||||||
Click the link to overwrite a conflicting draft with the current editor content.
| |||||||||||
Opens the reply page for the given comment
| |||||||||||
Clicks save but expects an alert mesage without leaving the page.
| |||||||||||
Saves the page and expects to return to the editor.
| |||||||||||
Note that this is only available as a dark feature now.
| |||||||||||
Note: Be careful with \n characters as they behave differently in IE and FF at the moment.
| |||||||||||
Sets the cursor position in the markup editor.
| |||||||||||
Puts the cursor at the end of the Wiki Markup editor.
| |||||||||||
This method is deprecated.
Try
setHtmlContent(String) for injecting content into the Editor without typing.
| |||||||||||
This method is deprecated.
No more markup editor.
| |||||||||||
Triggers a draft by switching to preview mode.
| |||||||||||
Leaves a unmodified page and checks that the draft screen does NOT contain a draft with the title
of the given page.
| |||||||||||
Triggers a draft to be saved and then checks that the draft screen contains a draft with the title
of the given page.
| |||||||||||
Triggers a draft to be saved.
| |||||||||||
Click the link to resolve a conflict between an existing draft and the current editor content.
| |||||||||||
Waits for the page to load with the configured editor page load timeout.
| |||||||||||
Waits for the heartbeat message container to appear.
| |||||||||||
Wait until the preview is loaded
| |||||||||||
Wait until the RTE is visible after switching back from the preview
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Add a comment from a page view. This method actually clicks on the load rte link for the comment rather than going to the add comment url directly.
Adds the specified error message to the screen.
| id | the element id for the error to be added |
|---|---|
| message | the message to display |
| showInAllModes | true will show the error in both editor and preview modes, false only in editor mode. |
Has the unfortunate side effect of losing your cursor position, blame tinymce.
For use when opening the macro browser manually, e.g. via a context menu selection
Retrieve a macro's parameters from the editor.
| name | the name of the macro to be checked for |
|---|
| SeleniumException | if the macro doesn't exist. |
|---|
Returns a version of getContent() that should be the same in all browsers.
The content is:
Gets the value in the editor Title field. If the field is showing the default greyed-text title an empty string will be returned.
Returns true if Confluence considers the editor content to have changed. Checks RTE and Wiki markup.
Encapsulate the editor representation of macros in a single place for testing.
| name | the name of the macro to be checked for |
|---|---|
| parameters | the parameters to be checked for or null if there are none. |
Returns true if permissions have been set in the editor. This method checks for the permissions button label and ensures that at least one of hidden input permission fields have been set.
Logs the given user in, edits the given content and switches to the RTE.
Click the link to merge an existing draft with the current editor content.
Click the link to overwrite a conflicting draft with the current editor content.
Opens the reply page for the given comment
| comment | The comment to reply to. It must have an id and page id set. |
|---|
Clicks save but expects an alert mesage without leaving the page.
Saves the page and expects to return to the editor. This is different from save() in that uses the editor
timeout instead of the normal page view timeout and also fails if there is no editor on the page that shows
after save.
Note: Be careful with \n characters as they behave differently in IE and FF at the moment. (IE->p, FF->br)
Sets the cursor position in the markup editor.
Puts the cursor at the end of the Wiki Markup editor.
This method is deprecated.
Try setHtmlContent(String) for injecting content into the Editor without typing.
This method is deprecated.
No more markup editor.
Triggers a draft by switching to preview mode.
Leaves a unmodified page and checks that the draft screen does NOT contain a draft with the title of the given page.
Triggers a draft to be saved and then checks that the draft screen contains a draft with the title of the given page.
Triggers a draft to be saved. It checks that the draft screen contains a draft with the title of the given page and then returns to the edit page screen.
Click the link to resolve a conflict between an existing draft and the current editor content.
Waits for the page to load with the configured editor page load timeout. Loading editor pages is quite slow, so it should be higher than the other configured timeouts.
Waits for the heartbeat message container to appear.
Wait until the preview is loaded
Wait until the RTE is visible after switching back from the preview