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

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

public class FileDirectoryInfo
extends Object

Entity that models the list of file or directories as it appears on the DocumentLibraryPage. The list models the HTML element representing the file or directory

Author:
Michael Suzuki

Constructor Summary
FileDirectoryInfo(org.openqa.selenium.WebElement element)
           
 
Method Summary
 void clickOnTitle()
           
 String getDescription()
          Gets the description of the file or directory, if none then empty string is returned
 String getName()
          Gets the name of the file or directory, if none then empty string is returned
 boolean isTypeFolder()
          Checks if the FileDirectory is of a folder type.
 boolean selectDelete(WebDrone drone)
          Select the delete button on the item.
 EditDocumentPropertiesPopup selectEditProperties(WebDrone drone)
          Selects the edit properties link on the select data row on DocumentLibrary Page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDirectoryInfo

public FileDirectoryInfo(org.openqa.selenium.WebElement element)
Method Detail

getName

public String getName()
Gets the name of the file or directory, if none then empty string is returned

Returns:
String title

clickOnTitle

public void clickOnTitle()

isTypeFolder

public boolean isTypeFolder()
Checks if the FileDirectory is of a folder type.

Returns:
true if folder

getDescription

public String getDescription()
Gets the description of the file or directory, if none then empty string is returned

Returns:
String title

selectDelete

public boolean selectDelete(WebDrone drone)
Select the delete button on the item.

Parameters:
{@link - WebDrone} web drone

selectEditProperties

public EditDocumentPropertiesPopup selectEditProperties(WebDrone drone)
Selects the edit properties link on the select data row on DocumentLibrary Page

Parameters:
drone - WebDrone
Returns:
EditDocumentPropertiesPage response


Copyright © 2013. All Rights Reserved.