// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
  {
    action: get
    url: https://crosvideo.appspot.com/?codec=vp9_60&resolution=1080&loop=true
    ready_state: complete
    target: _new_window
  }
  // Element ready doesn't mean stream is ready, so wait for a bit
  {
    action: wait_for_element
    selector: video#video
    timeout: 10s
  }
  {
    action: wait
    duration: 5s
  }
  {
    action: js
    script: document.querySelector('video#video').play()
  }
  {
    action: switch_tab
    tab_index: 0
  }
]
