{
  "pages": {
    "amazon_product": [
      // This will create a spare renderer process before the navigation
      {
        "action": "get"
        "url": "about:blank"
        "target": "_new_tab"
      }
      {
        "action": "wait"
        "duration": "1s"
      }
      {
        "action": "click"
        "source": "touch"
        "position": {
          "x": 0
          "y": 0
        }
      }
      {
        "action": "js"
        "script":
          '''
          performance.mark('LoadLine2/amazon_product/start');
          window.location.href = 'https://www.amazon.co.uk/NIVEA-Suncream-Spray-Protect-Moisture/dp/B001B0OJXM';
          '''
      }
      {
        "action": "wait_for_condition"
        "condition":
          '''
          return performance.getEntriesByName('LoadLine2/amazon_product/interactive').length > 0
              && performance.getEntriesByName('LoadLine2/amazon_product/visual').length > 0
          '''
        "timeout": "20s"
      }
      {
        "action": "wait"
        "duration": "100ms"
      }
      {
        "action": "js"
        "script": "performance.mark('LoadLine2/amazon_product/finish')"
      }
      {
        "action": "get"
        "url": "about:blank"
      }
    ]
    "google_doc": [
      {
        "action": "wait"
        "duration": "1s"
      }
      {
        "action": "click"
        "source": "touch"
        "position": {
          "x": 0
          "y": 0
        }
      }
      {
        "action": "js"
        "script":
          '''
          performance.mark('LoadLine2/google_doc/start');
          window.location.href = 'https://docs.google.com/document/d/13AWeOGqtSkfpPK7meqE_X-GQQggwx4JJ1vc0YGvKg34/edit#heading=h.gjdgxs';
          '''
      }
      {
        "action": "wait_for_condition"
        "condition":
          '''
          return performance.getEntriesByName('LoadLine2/google_doc/interactive').length > 0
              && performance.getEntriesByName('LoadLine2/google_doc/visual').length > 0
          '''
        "timeout": "10s"
      }
      {
        "action": "wait"
        "duration": "100ms"
      }
      {
        "action": "js"
        "script": "performance.mark('LoadLine2/google_doc/finish')"
      }
      {
        "action": "get"
        "url": "about:blank"
      }
    ]
    "cnn_article": [
      // This will create a spare renderer process before the navigation
      {
        "action": "get"
        "url": "about:blank"
        "target": "_new_tab"
      }
      {
        "action": "wait"
        "duration": "1s"
      }
      {
        "action": "click"
        "source": "touch"
        "position": {
          "x": 0
          "y": 0
        }
      }
      {
        "action": "js"
        "script":
          '''
          performance.mark('LoadLine2/cnn_article/start');
          window.location.href = 'https://edition.cnn.com/2024/04/21/china/china-spy-agency-public-profile-intl-hnk/index.html';
          '''
      }
      {
        "action": "wait_for_condition"
        "condition":
          '''
          return performance.getEntriesByName('LoadLine2/cnn_article/interactive').length > 0
              && performance.getEntriesByName('LoadLine2/cnn_article/visual').length > 0
          '''
        "timeout": "10s"
      }
      {
        "action": "wait"
        "duration": "100ms"
      }
      {
        "action": "js"
        "script": "performance.mark('LoadLine2/cnn_article/finish')"
      }
      {
        "action": "get"
        "url": "about:blank"
      }
    ]
    "google_search_result": [
      {
        "action": "wait"
        "duration": "1s"
      }
      {
        "action": "click"
        "source": "touch"
        "position": {
          "x": 0
          "y": 0
        }
      }
      {
        "action": "js"
        "script":
          '''
          performance.mark('LoadLine2/google_search_result/start');
          window.location.href = 'https://www.google.com/search?q=cats';
          '''
      }
      {
        "action": "wait_for_condition"
        "condition":
          '''
          return performance.getEntriesByName('LoadLine2/google_search_result/interactive').length > 0
              && performance.getEntriesByName('LoadLine2/google_search_result/visual').length > 0
          '''
        "timeout": "10s"
      }
      {
        "action": "wait"
        "duration": "100ms"
      }
      {
        "action": "js"
        "script": "performance.mark('LoadLine2/google_search_result/finish')"
      }
      {
        "action": "get"
        "url": "about:blank"
      }
    ]
    "youtube_video": [
      {
        "action": "wait"
        "duration": "1s"
      }
      {
        "action": "click"
        "source": "touch"
        "position": {
          "x": 0
          "y": 0
        }
      }
      {
        "action": "js"
        "script":
          '''
          performance.mark('LoadLine2/youtube_video/start');
          window.location.href = 'https://www.youtube.com/watch?v=WuS9kPNAXHw&themeRefresh=1';
          '''
      }
      {
        "action": "wait_for_condition"
        "condition":
          '''
          return performance.getEntriesByName('LoadLine2/youtube_video/interactive').length > 0
              && performance.getEntriesByName('LoadLine2/youtube_video/visual').length > 0
          '''
        "timeout": "20s"
      }
      {
        "action": "wait"
        "duration": "100ms"
      }
      {
        "action": "js"
        "script": "performance.mark('LoadLine2/youtube_video/finish');"
      }
      {
        "action": "get"
        "url": "about:blank"
      }
    ]
  }
}
