|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.Dialog com.atlassian.confluence.selenium.client.InsertImageDialog
public class InsertImageDialog
The insert image dialog added in 3.1.
Nested Class Summary | |
---|---|
static class |
InsertImageDialog.Align
Permitted values for the "Align" input of the dialog. |
static class |
InsertImageDialog.Panel
|
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
client, id |
Constructor Summary | |
---|---|
InsertImageDialog(ConfluenceSeleniumClient client)
|
Method Summary | |
---|---|
void |
cancel()
|
void |
chooseImage(java.lang.String filename)
|
void |
clickInsert()
|
void |
clickSave()
Clicks the Save button in the Dialog to update an existing image. |
InsertImageDialog.Align |
getAlign()
Returns the currently-selected value of the Align input in the Image Dialog. |
java.lang.String |
getImageCaptionTitle(java.lang.String filename)
|
boolean |
isBorder()
Returns true if the border input is checked in the Image Dialog. |
boolean |
isImagePresent(java.lang.String filename)
|
boolean |
isThumbnail()
Returns true if the thumbnail input is checked in the Image Dialog. |
boolean |
isUploadFormVisible()
|
ImagePreview |
previewImage(java.lang.String filename)
|
void |
selectPanel(InsertImageDialog.Panel panel)
|
void |
setAlign(InsertImageDialog.Align align)
Selects the option with the supplied value in the Align input. |
void |
setBorder(boolean border)
Sets the border checkbox to checked or unchecked based on the passed variable. |
void |
setExternalImageUrl(java.lang.String imageUrl)
|
void |
setThumbnail(boolean thumbnail)
Sets the thumbnail checkbox to checked or unchecked based on the passed variable. |
void |
waitUntilSelected(java.lang.String filename)
Waits until the image with the given filename is selected in the dialog. |
void |
waitUntilVisible()
|
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
clickButton, clickCancel, clickClose, clickLink, clickPageMenu, getId, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilHidden |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertImageDialog(ConfluenceSeleniumClient client)
Method Detail |
---|
public void waitUntilVisible()
waitUntilVisible
in class Dialog
public boolean isUploadFormVisible()
public boolean isImagePresent(java.lang.String filename)
public void chooseImage(java.lang.String filename)
public void clickInsert()
public void clickSave()
public java.lang.String getImageCaptionTitle(java.lang.String filename)
public ImagePreview previewImage(java.lang.String filename)
public void cancel()
public void selectPanel(InsertImageDialog.Panel panel)
public void setExternalImageUrl(java.lang.String imageUrl)
public void waitUntilSelected(java.lang.String filename)
public boolean isThumbnail()
public void setThumbnail(boolean thumbnail)
thumbnail
- true or false for checked or uncheckedpublic boolean isBorder()
public void setBorder(boolean border)
border
- true or false for checked or uncheckedpublic InsertImageDialog.Align getAlign()
public void setAlign(InsertImageDialog.Align align)
align
- one of "none", "left", "center" or "right"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |