com.atlassian.confluence.selenium.client
Class InsertImageDialog
java.lang.Object
com.atlassian.confluence.selenium.client.Dialog
com.atlassian.confluence.selenium.client.InsertImageDialog
public class InsertImageDialog
- extends Dialog
The insert image dialog added in 3.1.
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog |
client, id |
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog |
clickButton, clickCancel, clickLink, clickPageMenu, getId, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilClosed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsertImageDialog
public InsertImageDialog(ConfluenceSeleniumClient client)
waitUntilVisible
public void waitUntilVisible()
- Overrides:
waitUntilVisible
in class Dialog
isUploadFormVisible
public boolean isUploadFormVisible()
isImagePresent
public boolean isImagePresent(java.lang.String filename)
isImagePresent
public boolean isImagePresent(java.lang.String filename,
InsertImageDialog.Panel panel)
indexOfImage
public int indexOfImage(java.lang.String filename)
indexOfImage
public int indexOfImage(java.lang.String filename,
InsertImageDialog.Panel panel)
chooseImage
public void chooseImage(java.lang.String filename)
chooseImage
public void chooseImage(java.lang.String filename,
InsertImageDialog.Panel panel)
clickPreviewExternalImage
public void clickPreviewExternalImage()
waitForPreviewExternalImage
public void waitForPreviewExternalImage()
getPreviewExternalImageError
public java.lang.String getPreviewExternalImageError()
clickInsert
public void clickInsert()
clickSave
public void clickSave()
- Clicks the Save button in the Dialog to update an existing image.
getImageCaptionTitle
public java.lang.String getImageCaptionTitle(java.lang.String filename)
getImageCaptionTitle
public java.lang.String getImageCaptionTitle(java.lang.String filename,
InsertImageDialog.Panel panel)
previewImage
public ImagePreview previewImage(java.lang.String filename)
previewImage
public ImagePreview previewImage(java.lang.String filename,
InsertImageDialog.Panel panel)
cancel
public void cancel()
selectPanel
public void selectPanel(InsertImageDialog.Panel panel)
setExternalImageUrl
public void setExternalImageUrl(java.lang.String imageUrl)
runSearch
public void runSearch(java.lang.String searchText)
runSearchWithEnter
public void runSearchWithEnter(java.lang.String searchText)
waitUntilSelected
public void waitUntilSelected(java.lang.String filename)
- Waits until the image with the given filename is selected in the dialog.
waitUntilSelected
public void waitUntilSelected(java.lang.String filename,
InsertImageDialog.Panel panel)
getSearchResultCount
public int getSearchResultCount(InsertImageDialog.Panel panel)
setSearchSpace
public void setSearchSpace(Space space)
getDisplayFilename
public java.lang.String getDisplayFilename(java.lang.String filename,
InsertImageDialog.Panel panel)
getDisplayPageName
public java.lang.String getDisplayPageName(java.lang.String filename,
InsertImageDialog.Panel panel)
Copyright © 2003-2014 Atlassian. All Rights Reserved.