org.xwiki.appwithinminutes.test.po
Class ApplicationsLiveTableElement

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.LiveTableElement
          extended by org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement

public class ApplicationsLiveTableElement
extends LiveTableElement

Represents the live table that lists the existing applications on the AppWithinMinuts home page.

Since:
4.2M1
Version:
$Id: d6b38458e6c84202a416b9b3acae4ae44a4ae724 $

Constructor Summary
ApplicationsLiveTableElement()
          Creates a new instance.
 
Method Summary
 boolean canDeleteApplication(String appName)
           
 boolean canEditApplication(String appName)
           
protected  void clickAction(String appName, String action)
          Clicks one of the action links corresponding to the specified application.
 ConfirmationPage clickDeleteApplication(String appName)
          Clicks on the link to delete the specified application.
 ApplicationClassEditPage clickEditApplication(String appName)
          Clicks on the link to edit the specified application.
 void filterApplicationName(String appNameFilter)
          Filters by application name.
 String getApplicationNameFilter()
           
protected  boolean hasAction(String appName, String action)
           
 boolean isApplicationListed(String appName)
           
 
Methods inherited from class org.xwiki.test.ui.po.LiveTableElement
filterColumn, getColumnIndex, getFilterValue, getRowCount, hasColumn, hasRow, isReady, waitUntilReady, waitUntilRowCountGreaterThan
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationsLiveTableElement

public ApplicationsLiveTableElement()
Creates a new instance.

Method Detail

isApplicationListed

public boolean isApplicationListed(String appName)
Parameters:
appName - the name of an application
Returns:
true if the specified application is listed, false otherwise

clickDeleteApplication

public ConfirmationPage clickDeleteApplication(String appName)
Clicks on the link to delete the specified application.

Parameters:
appName - the name of the application to delete

canDeleteApplication

public boolean canDeleteApplication(String appName)
Parameters:
appName - the name of an application
Returns:
true if the delete link is displayed for the specified application

clickEditApplication

public ApplicationClassEditPage clickEditApplication(String appName)
Clicks on the link to edit the specified application.

Parameters:
appName - the name of the application to delete.

canEditApplication

public boolean canEditApplication(String appName)
Parameters:
appName - the name of an application
Returns:
true if the edit link is displayed for the specified application

clickAction

protected void clickAction(String appName,
                           String action)
Clicks one of the action links corresponding to the specified application.

Parameters:
appName - the action target
action - the action name

hasAction

protected boolean hasAction(String appName,
                            String action)
Returns:
true if the given action is listed for the specified application, false otherwise

filterApplicationName

public void filterApplicationName(String appNameFilter)
Filters by application name.

Parameters:
appNameFilter - the string to filter the application names with

getApplicationNameFilter

public String getApplicationNameFilter()


Copyright © 2004-2013 XWiki. All Rights Reserved.