Automation lab Aú Audio & Media (MEDIA_AUDIO)

Lab 081: Microphone permission allow and deny

Practice microphone permission allow and deny 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 microphone permission allow and deny.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Audio & Media / media / intermediate / active

Microphone permission allow and deny

Simulate requesting microphone access and handling allow/deny paths.

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

Learning objectives

  • Request mic permission.
  • Handle allowed vs denied responses.
  • Expose status and indicator.

Steps

  1. Click request permission.
  2. Simulate allow with success indicator.
  3. Simulate deny with error indicator.

Permission not requested

Idle

Assertions to practice

  • Allow sets status to granted and indicator green.
  • Deny sets status to denied and indicator red.
  • Indicator text matches state.