com.atlassian.confluence.selenium.client
Class InsertImagePopup

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.ConfluencePopup
      extended by com.atlassian.confluence.selenium.client.EditorPopup
          extended by com.atlassian.confluence.selenium.client.InsertImagePopup

public class InsertImagePopup
extends EditorPopup


Field Summary
 
Fields inherited from class com.atlassian.confluence.selenium.client.ConfluencePopup
client, windowId
 
Constructor Summary
InsertImagePopup(ConfluenceSeleniumClient client)
           
 
Method Summary
 void attachImage(java.lang.String fullPath, java.lang.String fileName)
          Deprecated. won't work because the browser doesn't let file upload dialogs to be manipulated via javascript Leaving this in here, because this would be the best way to test insert image actions on new pages.
 void chooseImage(java.lang.String fileName)
           
 boolean containsImage(java.lang.String src)
          True if this popup has an image available for selection that matches the passed in src.
 java.lang.String[] getImages()
          Returns an array of all the selectable images in the image popup selection window.
 
Methods inherited from class com.atlassian.confluence.selenium.client.EditorPopup
clickCancel, clickOk
 
Methods inherited from class com.atlassian.confluence.selenium.client.ConfluencePopup
closeWindow, getClient, isOpen, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertImagePopup

public InsertImagePopup(ConfluenceSeleniumClient client)
Method Detail

chooseImage

public void chooseImage(java.lang.String fileName)

attachImage

public void attachImage(java.lang.String fullPath,
                        java.lang.String fileName)
Deprecated. won't work because the browser doesn't let file upload dialogs to be manipulated via javascript Leaving this in here, because this would be the best way to test insert image actions on new pages.


getImages

public java.lang.String[] getImages()
Returns an array of all the selectable images in the image popup selection window. Selectable images are all images found that match the thumbnail URL pattern.

Returns:
a string array of image src's

containsImage

public boolean containsImage(java.lang.String src)
True if this popup has an image available for selection that matches the passed in src. This method expects you to encode your src parameter (at least the filename part) before passing it in.

Parameters:
src - the src to match
Returns:
true if it exists


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.