Class BrowserMetricsContext

java.lang.Object
com.atlassian.jira.pageobjects.util.browsermetrics.BrowserMetricsContext

public class BrowserMetricsContext extends Object
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 Details

    • BrowserMetricsContext

      public BrowserMetricsContext()
  • Method Details

    • checkpoint

      public Checkpoint checkpoint()
      Returns a checkpoint containing the current state of beacon list.
    • waitFor

      public Beacon waitFor(Checkpoint checkpoint, String key)
      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

      public boolean exists(Checkpoint checkpoint, String key)
      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.