Class Timeline
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.Timeline
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
Component wrapper for the PrimeFaces
p:timeline.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets number of events (items in the timeline).booleanIs the timeline using AJAX "rangechanged" event?booleanIs the timeline using AJAX "select" event?voidmove(double moveFactor) Move the timeline left or right by a factorvoidSelects either an event or any other element in the timeline by its CSS class.voidupdate()Force render the timeline component.voidzoom(double zoomFactor) Zoom the timeline in by the zoom factor.Methods inherited from class org.primefaces.selenium.component.base.AbstractComponent
destroy, getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxifiedMethods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
-
Constructor Details
-
Timeline
public Timeline()
-
-
Method Details
-
select
Selects either an event or any other element in the timeline by its CSS class.- Parameters:
cssClass- the CSS class to select
-
isRangeChangedAjaxified
public boolean isRangeChangedAjaxified()Is the timeline using AJAX "rangechanged" event?- Returns:
- true if using AJAX for rangechanged
-
isSelectAjaxified
public boolean isSelectAjaxified()Is the timeline using AJAX "select" event?- Returns:
- true if using AJAX for select
-
update
public void update()Force render the timeline component. -
getNumberOfEvents
public long getNumberOfEvents()Gets number of events (items in the timeline).- Returns:
- The number of event in the timeline.
-
zoom
public void zoom(double zoomFactor) Zoom the timeline in by the zoom factor.- Parameters:
zoomFactor- a number between 0 and 1
-
move
public void move(double moveFactor) Move the timeline left or right by a factor- Parameters:
moveFactor- a number between 0 and 1
-