Skip to main content

How to Validate whether the video is played back?

Validate

_eval('document.getElementsByClassName("jw-video Video Playback in Scenario Editorjw-reset")[0].currentTime')

Validate video playback when the application behavior depends on media loading, playback state, or user interaction with a video component.

  • Confirm whether the test needs to validate playback start, progress, completion, or UI controls.
  • Use stable player state or visible indicators when available.
  • Account for browser autoplay and permission policies.
  • Avoid long fixed waits when player state can be checked directly.

Validation workflow

  1. Load the page and waitLook for the videoVideo component.
  2. Starttag playback throughin the supportedDOM UIand action.
  3. Validateuse the expected playback stateclass or progressid marker.
  4. Captureof outputit. if playback fails
    due to media, browser, or network issues.

    Last updated: SeptemberJune 20,26, 20262023

    If you have any feedback on this topic, please contact us at documentation@appvance.ai