Skip to content

uiautomator dump fails on apps with continuous animation #117

@srollly666

Description

@srollly666

Mobilewright version

0.0.33

Operating system

MacOS

Target platform

Android

Device or simulator

Pixel 9 Pro

Minimal reproduction

This is reproducible on any production app that doesn't stop animating

Actual behavior

#Claude Code analysis (Might help)
The first call that requires the view tree fails immediately with:

  • RpcError: failed to dump UI from device Pixel_9_Pro: failed to get uiautomator dump: no XML content found in uiautomator dump

Stack:

  • at MobilecliDriver.getViewHierarchy (node_modules/@mobilewright/driver-mobilecli/src/driver.ts:252:28)
  • at Locator.pollUntilState (node_modules/@mobilewright/core/src/locator.ts:240:21)

Fails on apps with continuous animation

$ adb -s emulator-5554 shell uiautomator dump /sdcard/dump.xml
ERROR: could not get idle state.

Works

$ adb -s emulator-5554 shell uiautomator dump --compressed /sdcard/dump.xml
UI hierchary dumped to: /sdcard/dump.xml

4854 bytes of valid XML

Expected behavior

Any getByLabel / getByRole / getByText locator on Android should return the on-screen elements.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions