public class AttachmentsPane extends BaseElement
Constructor and Description |
---|
AttachmentsPane() |
Modifier and Type | Method and Description |
---|---|
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)
Return the
a tag of an attachment link according to its name. |
String |
getDateOfLastUpload(String attachmentName) |
String |
getLatestVersionOfAttachment(String attachmentName) |
int |
getNumberOfAttachments() |
String |
getSizeOfAttachment(String attachmentName) |
String |
getUploaderOfAttachment(String attachmentName) |
boolean |
isOpened() |
void |
setFileToUpload(String filePath)
Fills the URL with the specified file path.
|
void |
waitForUploadToFinish(String fileName) |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public boolean isOpened()
public void setFileToUpload(String filePath)
filePath
- the path to the file to upload in URL form (the file *must* exist in the target directory).public void waitForUploadToFinish(String fileName)
public void clickHideProgress()
public void addAnotherFile()
public void clickAttachFiles()
public org.openqa.selenium.WebElement getAttachmentLink(String attachmentName)
a
tag of an attachment link according to its name.attachmentName
- the name of the attachment (for instance "my_doc.txt"
)WebElement
of the a
tag with the requested namepublic void deleteAttachmentByFileByName(String attachmentName)
attachmentName
- the name of the attachment to be deletedpublic void deleteFirstAttachment()
public int getNumberOfAttachments()
public void deleteAllAttachments()
public boolean attachmentExistsByFileName(String attachmentName)
Copyright © 2004–2021 XWiki. All rights reserved.