Class ApplicationsLiveTableElement
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.LiveTableElement
-
- org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement
-
public class ApplicationsLiveTableElement extends LiveTableElement
Represents the live table that lists the existing applications on the AppWithinMinutes home page.- Since:
- 4.2M1
- Version:
- $Id: 64b7b489a194fcb8b5adfa992e7439d2703b198d $
-
-
Constructor Summary
Constructors Constructor Description ApplicationsLiveTableElement()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
ApplicationHomePage
viewApplication(String appName)
-
Methods inherited from class org.xwiki.test.ui.po.LiveTableElement
clickAction, clickCell, filterColumn, getCell, getCell, getColumnIndex, getFilterValue, getRow, getRowCount, getRowNumberForElement, hasColumn, hasExactRows, hasRow, isReady, sortAscending, sortBy, sortDescending, waitUntilReady, waitUntilRowCountGreaterThan, waitUntilRowCountGreaterThan
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
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
-
viewApplication
public ApplicationHomePage viewApplication(String appName)
-
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 targetaction
- 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()
-
-