Package org.xwiki.livedata.test.po
Class LiveDataElement
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.livedata.test.po.LiveDataElement
-
public class LiveDataElement extends BaseElement
Live Data page object. Provides the operations to obtain the page objects for the different live data layouts, and to switch between them.- Since:
- 13.4RC1
- Version:
- $Id: d6ec65bc94b23ea46bd514863a9352f20145a4ca $
-
-
Constructor Summary
Constructors Constructor Description LiveDataElement(String id)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countFootnotes()
CardLayoutElement
getCardLayout()
List<String>
getFootnotesText()
TableLayoutElement
getTableLayout()
boolean
isReady()
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Constructor Detail
-
LiveDataElement
public LiveDataElement(String id)
Default constructor. Initializes a Live Data page object by its id.- Parameters:
id
- the live data id- Since:
- 12.10.9
-
-
Method Detail
-
getTableLayout
public TableLayoutElement getTableLayout()
- Returns:
- a table layout page object for the live data
- Since:
- 12.10.9
-
getCardLayout
public CardLayoutElement getCardLayout()
- Returns:
- a cart layout page object for the live data
-
countFootnotes
public int countFootnotes()
- Returns:
- the number of displayed footnotes
- Since:
- 13.6RC1, 13.5, 13.4.1
-
getFootnotesText
public List<String> getFootnotesText()
- Returns:
- a list of the text of the footnotes
- Since:
- 13.6RC1, 13.5, 13.4.1
-
isReady
public boolean isReady()
- Returns:
- if the live data has finished loading and is ready for service
-
-