Class TimelinePanel
- java.lang.Object
-
- com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
-
- com.adobe.cq.testing.selenium.pagewidgets.common.AEMBaseComponent
-
- com.adobe.cq.testing.selenium.pagewidgets.cq.TimelinePanel
-
public class TimelinePanel extends AEMBaseComponent
-
-
Field Summary
Fields Modifier and Type Field Description static com.codeborne.selenide.SelenideElementCOMMENT_FIELDstatic com.codeborne.selenide.SelenideElementVERSION_COMMENTstatic com.codeborne.selenide.SelenideElementVERSION_LABEL-
Fields inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
cssSelector, currentElement
-
-
Constructor Summary
Constructors Constructor Description TimelinePanel()Construct the Timeline Panel on the left Rail.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComment(java.lang.String comment)CoralSelectListfilter()TimelineWorkflowEventgetActiveExpandableTimelineEvents()com.codeborne.selenide.ElementsCollectiongetExpandableTimelineEvents()com.codeborne.selenide.ElementsCollectiongetTimelineBalloons()com.codeborne.selenide.ElementsCollectiongetTimelineEvents()com.codeborne.selenide.ElementsCollectiongetTimelineTitles()booleanhasMore()booleanisOpened()voidmore()Click on the more action.voidsaveVersion(java.lang.String label, java.lang.String comment)TimelineWorkflowEventselectExpandableEventByTitle(java.lang.String title)voidstartWorkflow(java.lang.String modelId, java.lang.String title)-
Methods inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.AEMBaseComponent
getAction, getTrackingElement, waitPageMasked, waitPageUnmasked, waitReady
-
Methods inherited from class com.adobe.cq.testing.selenium.pagewidgets.common.BaseComponent
adaptTo, click, element, getCssSelector, isExisting, isVisible, isVisibleWithinViewport, render, scrollTo, waitDisabled, waitEnabled, waitVanish, waitVisible
-
-
-
-
Method Detail
-
isOpened
public boolean isOpened()
- Returns:
- true if this panel is selected and visible.
-
addComment
public void addComment(java.lang.String comment)
- Parameters:
comment- add a comment text to current timeline.
-
saveVersion
public void saveVersion(java.lang.String label, java.lang.String comment)- Parameters:
label- add a label to that version.comment- add a comment text to that version timeline.
-
getTimelineEvents
public com.codeborne.selenide.ElementsCollection getTimelineEvents()
- Returns:
- all timeline event elements.
-
getExpandableTimelineEvents
public com.codeborne.selenide.ElementsCollection getExpandableTimelineEvents()
- Returns:
- all timeline expandable event elements.
-
getActiveExpandableTimelineEvents
public TimelineWorkflowEvent getActiveExpandableTimelineEvents()
- Returns:
- the timeline expandable active event element.
-
selectExpandableEventByTitle
public TimelineWorkflowEvent selectExpandableEventByTitle(java.lang.String title)
- Parameters:
title- the title for this expandable event.- Returns:
- the selected timeline event after opening it, or null if not found.
-
getTimelineBalloons
public com.codeborne.selenide.ElementsCollection getTimelineBalloons()
- Returns:
- all timeline balloons elements.
-
getTimelineTitles
public com.codeborne.selenide.ElementsCollection getTimelineTitles()
- Returns:
- all timeline titles elements.
-
more
public void more()
Click on the more action.
-
filter
public CoralSelectList filter()
- Returns:
- filter list button.
-
hasMore
public boolean hasMore()
- Returns:
- true if the more button is displayed.
-
startWorkflow
public void startWorkflow(java.lang.String modelId, java.lang.String title)- Parameters:
modelId- the model Id to use.title- the title added to the workflow.
-
-