Skip to content

inputAccessoryView elements not reachable via tap_element / type_text #7

@rafiki270

Description

@rafiki270

Problem

When testing an iOS app (RPGPT) with a SwiftUI chat input bar at the bottom of the screen, AppReveal's tap_element and type_text tools cannot interact with it.

The input bar is rendered as a keyboard inputAccessoryView (standard SwiftUI pattern — the input moves up with the keyboard). The view tree confirms the element exists:

UIKitPlatformViewHost<PlatformViewRepresentableAdaptor<TextViewAdaptor>> | frame:26,802,304,18
  VerticalTextView | label= | frame:26,802,304,18

get_elements shows it with actions: "tap,type,clear,scroll" and id: "verticaltextview", but:

  • tap_elementElement not found: verticaltextview
  • type_text (no element) → Element not editable: current responder
  • clear_textElement not found: verticaltextview

get_view_tree confirms the view is there and has the correct frame.

Environment

  • AppReveal CLI 1.x
  • iOS Simulator (iPhone 17 Pro, iOS 26.2)
  • RPGPT SwiftUI app
  • Target: com.rpgpt.chat

What I've tried

  1. tap_element with element_id="verticaltextview" — element not found
  2. tap_element with element_id="chat.input" (accessibilityIdentifier) — element not found
  3. type_text with --element verticaltextview — element not found
  4. type_text without element — "Element not editable: current responder"
  5. batch with get_elements then tap_element in same batch — get_elements sees it, tap_element can't find it
  6. Scrolling the host scrollview — no change

Expected behavior

AppReveal should be able to tap and type into inputAccessoryView elements the same way it handles regular on-screen views.

Workaround

None that reliably work from AppReveal alone.

Tags

swiftui, inputaccessoryview, ios, simulator

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