org.xwiki.test.ui.po
Class AttachmentsPane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.AttachmentsPane

public class AttachmentsPane
extends BaseElement

Represents the actions possible on the Attachment Pane at the bottom of a page.

Since:
3.2M3
Version:
$Id: 47f00abb1bce10b1fca8e4c74dd23fb3081bc663 $

Constructor Summary
AttachmentsPane()
           
 
Method Summary
 void addAnotherFile()
          Adds another input field for attaching a file.
 boolean attachmentExistsByFileName(String attachmentName)
           
 void clickAttachFiles()
           
 void clickHideProgress()
           
 void deleteAllAttachments()
          Deletes ALL the attached files
 void deleteAttachmentByFileByName(String attachmentName)
          Deletes the corresponding file name.
 void deleteFirstAttachment()
          Deletes the first attachment.
 org.openqa.selenium.WebElement getAttachmentLink(String attachmentName)
           
 String getDateOfLastUpload(String attachmentName)
           
 String getLatestVersionOfAttachment(String attachmentName)
           
 int getNumberOfAttachments()
           
 String getSizeOfAttachment(String attachmentName)
           
 String getUploaderOfAttachment(String attachmentName)
           
 void setFileToUpload(String filePath)
          Fills the URL with the specified file path.
 void waitForUploadToFinish(String fileName)
           
 
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

AttachmentsPane

public AttachmentsPane()
Method Detail

setFileToUpload

public void setFileToUpload(String filePath)
Fills the URL with the specified file path.

Parameters:
filePath - the path to the file to upload in URL form (the file *must* exist in the target directory).

waitForUploadToFinish

public void waitForUploadToFinish(String fileName)

clickHideProgress

public void clickHideProgress()

addAnotherFile

public void addAnotherFile()
Adds another input field for attaching a file.


clickAttachFiles

public void clickAttachFiles()

getAttachmentLink

public org.openqa.selenium.WebElement getAttachmentLink(String attachmentName)
Since:
3.2M3

deleteAttachmentByFileByName

public void deleteAttachmentByFileByName(String attachmentName)
Deletes the corresponding file name.

Parameters:
attachmentName - the name of the attachment to be deleted

deleteFirstAttachment

public void deleteFirstAttachment()
Deletes the first attachment.


getNumberOfAttachments

public int getNumberOfAttachments()
Returns:
the number of attachments in this document.

deleteAllAttachments

public void deleteAllAttachments()
Deletes ALL the attached files


getUploaderOfAttachment

public String getUploaderOfAttachment(String attachmentName)

getLatestVersionOfAttachment

public String getLatestVersionOfAttachment(String attachmentName)

getSizeOfAttachment

public String getSizeOfAttachment(String attachmentName)

getDateOfLastUpload

public String getDateOfLastUpload(String attachmentName)

attachmentExistsByFileName

public boolean attachmentExistsByFileName(String attachmentName)


Copyright © 2004-2013 XWiki. All Rights Reserved.