cross_platform_verify
Compare UI elements across iOS and Android. Reads cached accessibility snapshots from both platforms (populated by device_snapshot) and checks which elements are present on each. Workflow: test on iOS → device_snapshot → switch to Android → device_snapshot → cross_platform_verify. Supports auto-discovery of testIDs from source via scanDir. Returns a per-element comparison table with PASS/FAIL verdict.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
elements | array | No | List of testIDs or labels to check on both platforms. Optional if scanDir is provided. | ||
scanDir | string | No | Directory to scan for testID=”…” props in .tsx/.jsx/.ts/.js files. Auto-discovers elements. Merges with elements[] if both provided. | ||
matchBy | `enum: testID | label | any` | No | 'any' |
cross_platform_verify()