Skip to content

Flutter get_elements empty and tap_text cannot tap visible segmented control #13

@rafiki270

Description

@rafiki270

Summary

AppReveal can see a visible Flutter text node via tap_text, but snapshot/get_elements report zero elements and tap_text refuses to tap the visible segmented-control label because it reports no tappable ancestor.

AppReveal CLI version

appreveal --version is not supported. Output begins with:

error: unknown option '--version'
AppReveal CLI
Usage: appreveal [options] [command]

Device / app info

platform: iOS
frameworkType: flutter
debugMode: true
bundleId: com.voicepos.voiceposApp.piano
appName: MiniPOS
version: 1.0.0
build: 1
operatingSystemVersion: Version 26.2 (Build 23C54)
screen: 1206x2622 physical px, 402x874 logical dp, devicePixelRatio 3
locale: en-GB

Exact commands and observed output

Command:
appreveal snapshot http://127.0.0.1:54169/ --json

Observed while the Home screen is visible:
{
"ok": true,
"result": {
"screen": { "result": { "screenKey": "home", "screenTitle": "Home" } },
"elementCount": 0,
"elements": []
}
}

Command:
appreveal call http://127.0.0.1:54169/ batch --args '{"actions":[{"tool":"tap_text","arguments":{"text":"Tables","match_mode":"exact"}},{"tool":"get_screen","delay_ms":500}]}' --json

Observed:
{
"tool": "tap_text",
"result": {
"error": "Found text "Tables" but it has no tappable ancestor. The text is visible but not inside a tappable widget."
}
}

get_view_tree does show the Home screen and the visible Tables segmented-control label around logical frame 301,194,44,17, so text discovery is partially working.

Steps to reproduce

  1. Launch the Flutter app in iOS simulator with AppReveal enabled: flutter run -d --debug.
  2. Log into the app.
  3. On Home, run appreveal snapshot http://127.0.0.1:/ --json.
  4. Run tap_text against visible segmented-control text Tables.

Expected

  • get_elements should expose visible interactive Flutter controls on Home.
  • tap_text should tap the tappable segmented-control ancestor for visible Tables text, or return actionable ancestor diagnostics.

Actual

  • snapshot reports elementCount: 0 / elements: [].
  • tap_text finds the text but reports no tappable ancestor, even though tapping the same logical area by point changes tabs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions