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.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

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)

chooseImage

public void chooseImage(java.lang.String filename)

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)

previewImage

public ImagePreview previewImage(java.lang.String filename)

cancel

public void cancel()

selectPanel

public void selectPanel(InsertImageDialog.Panel panel)

setExternalImageUrl

public void setExternalImageUrl(java.lang.String imageUrl)

waitUntilSelected

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


isThumbnail

public boolean isThumbnail()
Returns true if the thumbnail input is checked in the Image Dialog.


setThumbnail

public void setThumbnail(boolean thumbnail)
Sets the thumbnail checkbox to checked or unchecked based on the passed variable.

Parameters:
thumbnail - true or false for checked or unchecked

isBorder

public boolean isBorder()
Returns true if the border input is checked in the Image Dialog.


setBorder

public void setBorder(boolean border)
Sets the border checkbox to checked or unchecked based on the passed variable.

Parameters:
border - true or false for checked or unchecked

getAlign

public InsertImageDialog.Align getAlign()
Returns the currently-selected value of the Align input in the Image Dialog. May return "none", "left", "center" or "right".


setAlign

public void setAlign(InsertImageDialog.Align align)
Selects the option with the supplied value in the Align input.

Parameters:
align - one of "none", "left", "center" or "right"


Copyright © 2003-2011 Atlassian. All Rights Reserved.