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

isImagePresent

public boolean isImagePresent(String filename,
                              InsertImageDialog.Panel panel)

indexOfImage

public int indexOfImage(String filename)

indexOfImage

public int indexOfImage(String filename,
                        InsertImageDialog.Panel panel)

chooseImage

public void chooseImage(String filename)

chooseImage

public void chooseImage(String filename,
                        InsertImageDialog.Panel panel)

clickPreviewExternalImage

public void clickPreviewExternalImage()

waitForPreviewExternalImage

public void waitForPreviewExternalImage()

getPreviewExternalImageError

public String getPreviewExternalImageError()

clickInsert

public void clickInsert()

clickSave

public void clickSave()
Clicks the Save button in the Dialog to update an existing image.


getImageCaptionTitle

public String getImageCaptionTitle(String filename)

getImageCaptionTitle

public String getImageCaptionTitle(String filename,
                                   InsertImageDialog.Panel panel)

cancel

public void cancel()

selectPanel

public void selectPanel(InsertImageDialog.Panel panel)

setExternalImageUrl

public void setExternalImageUrl(String imageUrl)

runSearch

public void runSearch(String searchText)

runSearchWithEnter

public void runSearchWithEnter(String searchText)

waitUntilSelected

public void waitUntilSelected(String filename)
Waits until the image with the given filename is selected in the dialog.


waitUntilSelected

public void waitUntilSelected(String filename,
                              InsertImageDialog.Panel panel)

getSearchResultCount

public int getSearchResultCount(InsertImageDialog.Panel panel)

setSearchSpace

public void setSearchSpace(Space space)

getDisplayFilename

public String getDisplayFilename(String filename,
                                 InsertImageDialog.Panel panel)

getDisplayPageName

public String getDisplayPageName(String filename,
                                 InsertImageDialog.Panel panel)


Copyright © 2003–2015 Atlassian. All rights reserved.