org.alfresco.webdrone.share.site.document
Class ShareContentRow

java.lang.Object
  extended by org.alfresco.webdrone.share.site.document.ShareContentRow

public class ShareContentRow
extends Object

Represents a Data Grid / table view.

Since:
1.6.1
Author:
Meenal Bhave

Constructor Summary
ShareContentRow(HtmlElement element)
           
 
Method Summary
 String getContentNodeRef()
          Get NodeRef for the content on the selected data row on DocumentLibrary Page.
 String getEditInfo()
           
 boolean getFavouriteStatus()
           
 String getFileDesc()
           
 FileDirectoryInfo getFileDirectoryInfo(WebDrone drone)
          Returns the FileDirectoryInfo object in the selected ShareContentRow.
 String getLikeCount()
           
 String getLikeCount(WebDrone drone)
          Returns the Like Count for the content in the selected ShareContentRow.
 boolean getLikeStatus()
           
 List<String> getTagInfo()
           
 List<String> getTags(WebDrone drone)
          Returns the TagList for the content in the selected ShareContentRow.
 boolean isContentCheckboxSelected()
          Verify if checkbox next to the contentRow is selected.
 boolean isFavourite(WebDrone drone)
          Returns the Favourite status for the content in the selected ShareContentRow.
 boolean isFolder()
          Returns true if content in the selected data row on DocumentLibrary is folder Page.
 boolean isLiked(WebDrone drone)
          Returns the Like status for the content in the selected ShareContentRow.
 void selectContentCheckbox()
          Selects checkbox next to the contentRow.
 SitePage selectDocumentThumbnail(WebDrone drone)
          Clicks on the thumbnail next to the contentRow.
 DocumentLibraryPage selectDownload(WebDrone drone)
          Selects the link on the select data row on DocumentLibrary Page.
 DocumentLibraryPage selectDownloadFolderAsZip(WebDrone drone)
          Selects the link on the select data row on DocumentLibrary Page.
 org.openqa.selenium.WebElement selectMoreAction()
          Returns the WebElement for Actions the in the selected ShareContentRow.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShareContentRow

public ShareContentRow(HtmlElement element)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

selectContentCheckbox

public void selectContentCheckbox()
Selects checkbox next to the contentRow.


isContentCheckboxSelected

public boolean isContentCheckboxSelected()
Verify if checkbox next to the contentRow is selected.

Returns:
true if selected

selectDocumentThumbnail

public SitePage selectDocumentThumbnail(WebDrone drone)
Clicks on the thumbnail next to the contentRow.

Returns:
{Link SitePage} Instance of SitePage page object

getFileDirectoryInfo

public FileDirectoryInfo getFileDirectoryInfo(WebDrone drone)
Returns the FileDirectoryInfo object in the selected ShareContentRow.

Returns:
{Link FileDirectoryInfo} FileDirectoryInfo object relevant to selected content

isLiked

public boolean isLiked(WebDrone drone)
Returns the Like status for the content in the selected ShareContentRow.

Returns:
{boolean} true is the content is liked

isFavourite

public boolean isFavourite(WebDrone drone)
Returns the Favourite status for the content in the selected ShareContentRow.

Returns:
boolean true is the content is marked as favourite

getLikeCount

public String getLikeCount(WebDrone drone)
Returns the Like Count for the content in the selected ShareContentRow.

Returns:
{Link String} Like count

getTags

public List<String> getTags(WebDrone drone)
Returns the TagList for the content in the selected ShareContentRow.

Returns:
List List of tags added to the content

selectMoreAction

public org.openqa.selenium.WebElement selectMoreAction()
Returns the WebElement for Actions the in the selected ShareContentRow.


getEditInfo

public String getEditInfo()
Returns:
the editInfo

getFileDesc

public String getFileDesc()
Returns:
the fileDesc

getTagInfo

public List<String> getTagInfo()
Returns:
the tagInfo

getLikeCount

public String getLikeCount()
Returns:
the likeCount

getLikeStatus

public boolean getLikeStatus()
Returns:
the likeStatus

getFavouriteStatus

public boolean getFavouriteStatus()
Returns:
the favouriteStatus

selectDownload

public DocumentLibraryPage selectDownload(WebDrone drone)
Selects the link on the select data row on DocumentLibrary Page.

Parameters:
drone - WebDrone
Returns:
DocumentLibraryPage response

getContentNodeRef

public String getContentNodeRef()
Get NodeRef for the content on the selected data row on DocumentLibrary Page.

Returns:
{String} Node Ref / GUID

selectDownloadFolderAsZip

public DocumentLibraryPage selectDownloadFolderAsZip(WebDrone drone)
Selects the link on the select data row on DocumentLibrary Page. Only available for content type = Folder.

Parameters:
drone - WebDrone
Returns:
DocumentLibraryPage response

isFolder

public boolean isFolder()
Returns true if content in the selected data row on DocumentLibrary is folder Page.

Returns:
{boolean} true if the content is of type folder.


Copyright © 2013. All Rights Reserved.