Class BrowserMetricsContext
java.lang.Object
com.atlassian.jira.pageobjects.util.browsermetrics.BrowserMetricsContext
browser-metrics is a JavaScript library which allows pages to instrument themselves and measure their load duration.
This means that the "definition of loaded" is encoded into the application itself, which allows us to use that
information to determine when a page is done rather than encoding it in a page object.
- Since:
- v7.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a checkpoint containing the current state of beacon list.com.atlassian.pageobjects.elements.query.TimedConditioncondition(Checkpoint checkpoint, String key) Waits for the occurrence of a beacon with the given transition key after the given checkpoint.booleanexists(Checkpoint checkpoint, String key) Check whether a beacon with given transition key exists after a checkpoint.waitFor(Checkpoint checkpoint, String key) Waits for the occurrence of a beacon with the given transition key exists after a checkpoint.
-
Constructor Details
-
BrowserMetricsContext
public BrowserMetricsContext()
-
-
Method Details
-
checkpoint
Returns a checkpoint containing the current state of beacon list. -
waitFor
Waits for the occurrence of a beacon with the given transition key exists after a checkpoint.- Parameters:
checkpoint- Starting point. Only beacons after this checkpoint will be inspected.key- Transition key to watch for.
-
exists
Check whether a beacon with given transition key exists after a checkpoint.- Parameters:
checkpoint- Starting point. Only beacons after this checkpoint will be inspected.key- Transition key to watch for.- Returns:
-
condition
public com.atlassian.pageobjects.elements.query.TimedCondition condition(Checkpoint checkpoint, String key) Waits for the occurrence of a beacon with the given transition key after the given checkpoint.- Parameters:
checkpoint- Starting point. Only beacons after this checkpoint will be inspected.key- Transition key to watch for.
-