com.atlassian.confluence.pageobjects.component.content
Class AttachmentsRow
java.lang.Object
com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
com.atlassian.confluence.pageobjects.component.content.AttachmentsRow
- All Implemented Interfaces:
- PageComponent
public class AttachmentsRow
- extends ConfluenceAbstractPageComponent
Represent a single row in an attachments table.
- Since:
- 4.1
Constructor Summary |
AttachmentsRow(org.openqa.selenium.By tableLocator,
Attachment attachment)
Creates a reference to the corresponding row for the latest version
of the provided attachment. |
AttachmentsRow(org.openqa.selenium.By tableLocator,
Attachment attachment,
int version)
Creates a reference to the corresponding row for the specified version
of the provided attachment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentsRow
public AttachmentsRow(org.openqa.selenium.By tableLocator,
Attachment attachment)
- Creates a reference to the corresponding row for the latest version
of the provided attachment.
- Parameters:
tableLocator
- - a locator for the instance of the attachment table in useattachment
- - the attachment to reference
AttachmentsRow
public AttachmentsRow(org.openqa.selenium.By tableLocator,
Attachment attachment,
int version)
- Creates a reference to the corresponding row for the specified version
of the provided attachment.
- Parameters:
tableLocator
- - a locator for the instance of the attachment table in useattachment
- - the attachmentversion
- - the version number of the attachment, if 0, the latest version is provided
isPresent
public boolean isPresent()
isVisible
public boolean isVisible()
isVersionTogglePresent
public boolean isVersionTogglePresent()
toggleShowVersion
public void toggleShowVersion()
clickRemove
public org.openqa.selenium.Alert clickRemove()
clickEdit
public EditAttachmentPage clickEdit()
getTable
public org.openqa.selenium.WebElement getTable()
getFileName
public String getFileName()
Copyright © 2003-2012 Atlassian. All Rights Reserved.