com.atlassian.confluence.pageobjects.component.attachment
Class AbstractAttachmentContainer

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.attachment.AbstractAttachmentContainer
All Implemented Interfaces:
PageComponent
Direct Known Subclasses:
AttachmentContainer, AttachmentVersionContainer

public abstract class AbstractAttachmentContainer
extends ConfluenceAbstractPageComponent

Since:
4.3

Field Summary
protected  com.google.common.base.Supplier<com.atlassian.pageobjects.elements.PageElement> fileNameLink
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, pageBinder, pageElementFinder, waiter
 
Constructor Summary
AbstractAttachmentContainer()
           
 
Method Summary
 boolean canRemove()
           
 com.atlassian.fugue.Maybe<AttachmentRemovalConfirmationDialog> clickRemove()
          Clicks the remove link (if present in the DOM) and binds an instance of AttachmentRemovalConfirmationDialog to the resulting AJS dialog DOM.
protected abstract  com.atlassian.pageobjects.elements.PageElement getAttachmentRow()
           
 String getFileName()
           
protected abstract  com.atlassian.pageobjects.elements.PageElement getRemoveLink()
           
 boolean isPresent()
           
 boolean isVisible()
           
 
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
 

Field Detail

fileNameLink

protected com.google.common.base.Supplier<com.atlassian.pageobjects.elements.PageElement> fileNameLink
Constructor Detail

AbstractAttachmentContainer

public AbstractAttachmentContainer()
Method Detail

getAttachmentRow

protected abstract com.atlassian.pageobjects.elements.PageElement getAttachmentRow()

getRemoveLink

protected abstract com.atlassian.pageobjects.elements.PageElement getRemoveLink()

isVisible

public boolean isVisible()

isPresent

public boolean isPresent()

getFileName

public String getFileName()

clickRemove

public com.atlassian.fugue.Maybe<AttachmentRemovalConfirmationDialog> clickRemove()
Clicks the remove link (if present in the DOM) and binds an instance of AttachmentRemovalConfirmationDialog to the resulting AJS dialog DOM.

Returns:

canRemove

public boolean canRemove()


Copyright © 2003-2013 Atlassian. All Rights Reserved.