org.xwiki.test.ui.po.editor.wysiwyg
Class UploadImagePane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.editor.wysiwyg.WizardStepElement
          extended by org.xwiki.test.ui.po.editor.wysiwyg.UploadImagePane

public class UploadImagePane
extends WizardStepElement

Models the image upload wizard step that is accessible when inserting or editing an image with the WYSIWYG editor.

Since:
3.2M3
Version:
$Id: d49c0966ca81a1bb2159f1116f4e3ff542955461 $

Constructor Summary
UploadImagePane()
           
 
Method Summary
 ImageConfigPane configureImage()
          Clicks on the "Image Settings" button, waits for the image to be uploaded and then for the image configuration pane to be loaded.
 void insertImage()
          Clicks on the "Insert Image" button, waits for the image to be uploaded and then for the image wizard to close.
 void setImageToUpload(String imagePath)
          Fills the URL with the specified image path.
 UploadImagePane waitToLoad()
          Waits for this wizard step to load.
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadImagePane

public UploadImagePane()
Method Detail

waitToLoad

public UploadImagePane waitToLoad()
Description copied from class: WizardStepElement
Waits for this wizard step to load.

Overrides:
waitToLoad in class WizardStepElement
Returns:
a reference to this wizard step for easy method chaining

setImageToUpload

public void setImageToUpload(String imagePath)
Fills the URL with the specified image path.

Parameters:
imagePath - the path to the image to upload in URL form

configureImage

public ImageConfigPane configureImage()
Clicks on the "Image Settings" button, waits for the image to be uploaded and then for the image configuration pane to be loaded.

Returns:
the pane used to configure the uploaded image before inserting it into the content

insertImage

public void insertImage()
Clicks on the "Insert Image" button, waits for the image to be uploaded and then for the image wizard to close.



Copyright © 2004-2013 XWiki. All Rights Reserved.