com.atlassian.confluence.selenium.client
Class InsertImagePopup
java.lang.Object
com.atlassian.confluence.selenium.client.ConfluencePopup
com.atlassian.confluence.selenium.client.EditorPopup
com.atlassian.confluence.selenium.client.InsertImagePopup
public class InsertImagePopup
- extends EditorPopup
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InsertImagePopup
public InsertImagePopup(ConfluenceSeleniumClient client)
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.