Automation lab Aú Audio & Media (MEDIA_AUDIO)

Lab 087: Video player play and pause

Practice video player play and pause in a real web app context as part of the Audio & Media module.

advanced advanced
advanced

Objectives

Use for test scripts
  • Understand the purpose and business flow of video player play and pause.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Audio & Media / media / advanced / active

Video player play and pause

Simulate video play/pause controls with status text.

Reading and understanding requirements Choosing stable locators Designing assertions based on business rules

Learning objectives

  • Toggle play/pause state.
  • Expose status text and time label.
  • Provide data-test hooks for automation.

Steps

  1. Click play → status playing.
  2. Click pause → status paused.
  3. Time label increments while playing (mocked).
Video placeholder

Paused

Time: 00:00

Assertions to practice

  • Status text shows Playing/Paused.
  • Time label increments while Playing.
  • Buttons keep data-test-id for automation.