com.atlassian.confluence.selenium.client
Class InsertImageDialog

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.Dialog
      extended by com.atlassian.confluence.selenium.client.InsertImageDialog

public class InsertImageDialog
extends Dialog

The insert image dialog added in 3.1.


Nested Class Summary
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 chooseImage(java.lang.String filename, InsertImageDialog.Panel panel)
           
 void clickInsert()
           
 void clickPreviewExternalImage()
           
 void clickSave()
          Clicks the Save button in the Dialog to update an existing image.
 java.lang.String getDisplayFilename(java.lang.String filename, InsertImageDialog.Panel panel)
           
 java.lang.String getDisplayPageName(java.lang.String filename, InsertImageDialog.Panel panel)
           
 java.lang.String getImageCaptionTitle(java.lang.String filename)
           
 java.lang.String getImageCaptionTitle(java.lang.String filename, InsertImageDialog.Panel panel)
           
 java.lang.String getPreviewExternalImageError()
           
 int getSearchResultCount(InsertImageDialog.Panel panel)
           
 int indexOfImage(java.lang.String filename)
           
 int indexOfImage(java.lang.String filename, InsertImageDialog.Panel panel)
           
 boolean isImagePresent(java.lang.String filename)
           
 boolean isImagePresent(java.lang.String filename, InsertImageDialog.Panel panel)
           
 boolean isUploadFormVisible()
           
 ImagePreview previewImage(java.lang.String filename)
           
 ImagePreview previewImage(java.lang.String filename, InsertImageDialog.Panel panel)
           
 void runSearch(java.lang.String searchText)
           
 void runSearchWithEnter(java.lang.String searchText)
           
 void selectPanel(InsertImageDialog.Panel panel)
           
 void setExternalImageUrl(java.lang.String imageUrl)
           
 void setSearchSpace(Space space)
           
 void waitForPreviewExternalImage()
           
 void waitUntilSelected(java.lang.String filename)
          Waits until the image with the given filename is selected in the dialog.
 void waitUntilSelected(java.lang.String filename, InsertImageDialog.Panel panel)
           
 void waitUntilVisible()
           
 
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
 

Constructor Detail

InsertImageDialog

public InsertImageDialog(ConfluenceSeleniumClient client)
Method Detail

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.