com.atlassian.confluence.pageobjects.component.dialog
Class ImageBrowserDialog

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
          extended by com.atlassian.confluence.pageobjects.component.dialog.Dialog
              extended by com.atlassian.confluence.pageobjects.component.dialog.ImageBrowserDialog
All Implemented Interfaces:
PageComponent

public class ImageBrowserDialog
extends Dialog


Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
id
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
ImageBrowserDialog()
           
 
Method Summary
 ImageBrowserDialog chooseFile(Attachment attachment)
           
 ImageBrowserDialog chooseImage(Attachment attachment)
           
 ImageBrowserDialog clickInsert()
           
 int getCurrentFileIndex()
          Get first index of current/highlight file item in Insert File Dialog
 List<com.atlassian.pageobjects.elements.PageElement> getFiles()
          Get list of file items in Insert File Dialog
 com.atlassian.pageobjects.elements.PageElement getSelectedFile()
           
 int getSelectedFileIndex()
          Get first index of selected file item in Insert File Dialog
 com.atlassian.pageobjects.elements.PageElement getZoomButton(Attachment attachment)
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasErrorMessage()
           
 boolean hasNoResultMessage()
           
 com.atlassian.pageobjects.elements.query.TimedCondition haveTipMessage()
           
 void hideTipMessage()
           
 void insertImageAndCloseDialog(String attachmentName)
          Deprecated. since 5.7 use chooseImage(com.atlassian.confluence.it.Attachment) ()} and clickInsert()
 com.atlassian.pageobjects.elements.query.TimedCondition isFilePresent(Attachment attachment)
           
 com.atlassian.pageobjects.elements.query.TimedCondition isFilePresent(String fileName)
           
 com.atlassian.pageobjects.elements.query.TimedCondition isImagePresent(Attachment attachment)
           
 boolean isSelect(Attachment attachment)
           
 com.atlassian.pageobjects.elements.query.TimedCondition isUploadFormVisible()
           
 void openFromMenu()
          Deprecated. 
 ExternalImagePanelImageBrowserDialog selectExternalImageTab()
           
 SearchPanelInImageBrowserDialog selectSearchTab()
           
 void sendKeys(org.openqa.selenium.Keys keys)
           
 void upload(String file)
           
 void waitUntilLoadedFiles()
          Wait until Insert File Dialog finish loading files.
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.Dialog
clickButton, clickCancel, clickCancelAndWaitUntilClosed, clickLink, clickPageMenu, find, findAll, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
getDialog, getHeight, getId, getWidth, isVisible, isVisibleTimed, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilHidden, waitUntilVisible
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBrowserDialog

public ImageBrowserDialog()
Method Detail

openFromMenu

@Deprecated
public void openFromMenu()
Deprecated. 


insertImageAndCloseDialog

@Deprecated
public void insertImageAndCloseDialog(String attachmentName)
Deprecated. since 5.7 use chooseImage(com.atlassian.confluence.it.Attachment) ()} and clickInsert()

This method does not escape attachmentName


isImagePresent

public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresent(Attachment attachment)

isFilePresent

public com.atlassian.pageobjects.elements.query.TimedCondition isFilePresent(Attachment attachment)

isFilePresent

public com.atlassian.pageobjects.elements.query.TimedCondition isFilePresent(String fileName)

chooseImage

public ImageBrowserDialog chooseImage(Attachment attachment)

chooseFile

public ImageBrowserDialog chooseFile(Attachment attachment)

isSelect

public boolean isSelect(Attachment attachment)

clickInsert

public ImageBrowserDialog clickInsert()

getZoomButton

public com.atlassian.pageobjects.elements.PageElement getZoomButton(Attachment attachment)

isUploadFormVisible

public com.atlassian.pageobjects.elements.query.TimedCondition isUploadFormVisible()

haveTipMessage

public com.atlassian.pageobjects.elements.query.TimedCondition haveTipMessage()

hasErrorMessage

public com.atlassian.pageobjects.elements.query.TimedCondition hasErrorMessage()

upload

public void upload(String file)

hideTipMessage

public void hideTipMessage()

hasNoResultMessage

public boolean hasNoResultMessage()

selectSearchTab

public SearchPanelInImageBrowserDialog selectSearchTab()

selectExternalImageTab

public ExternalImagePanelImageBrowserDialog selectExternalImageTab()

sendKeys

public void sendKeys(org.openqa.selenium.Keys keys)

getFiles

public List<com.atlassian.pageobjects.elements.PageElement> getFiles()
Get list of file items in Insert File Dialog


getSelectedFile

public com.atlassian.pageobjects.elements.PageElement getSelectedFile()

getCurrentFileIndex

public int getCurrentFileIndex()
Get first index of current/highlight file item in Insert File Dialog

Returns:
{integer}

getSelectedFileIndex

public int getSelectedFileIndex()
Get first index of selected file item in Insert File Dialog

Returns:
{integer}

waitUntilLoadedFiles

public void waitUntilLoadedFiles()
Wait until Insert File Dialog finish loading files.



Copyright © 2003–2015 Atlassian. All rights reserved.