[Bug]: ui-automation tap on an alert button's elementRef reports success but doesn't dismiss the alert

Abierto
#573 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ios, typescript
Área
mobile

Línea de trabajo

Start at the ui-automation tap handler and compare how it resolves a runtime-snapshot elementRef with the ui-automation touch path. Reproduce on an iOS 27 simulator using a SwiftUI alert with one button, then check that tap dismisses the alert and reports success.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Bug Description

ui-automation tap on a runtime-snapshot elementRef for a button in an in-app alert (a SwiftUI .alert with a single "OK" or "Dismiss" button) reports success, but the alert stays on screen. The screen hash doesn't change after three attempts. ui-automation touch with the same elementRef and "down": true, "up": true dismisses the alert on the first try.

Debug Output
MobileBuildMCP doctor (redacted)
Server Version: 2.7.1
- xcode: ok (Xcode 27.2, Build version 27B52)
- axe: ok (Available: Yes; UI automation: Yes; Video capture: Yes)
- debugger-dap: ok (Selected backend: lldb-cli; lldb-dap available: Yes)
- runtime-registration: ok (Enabled workflows: debugging, doctor, project-discovery, session-management, simulator-management, simulator, ui-automation, utilities, xcode-ide)
- mise: warning (Running under mise: No; Available: No)
Editor/Client

Claude Code

MCP Server Version

2.7.1

LLM

Claude Opus 5.5

MCP Configuration
Default configuration. Tools invoked through the `mobilebuildmcp` CLI (`ui-automation snapshot-ui`, `ui-automation tap`, `ui-automation touch`) against a booted iOS 27 simulator.
Steps to Reproduce
  1. Launch an app on an iOS 27 simulator so that it presents an alert with a single "OK" (or "Dismiss") button.
  2. Run ui-automation snapshot-ui and take the button's elementRef.
  3. Run ui-automation tap with that elementRef.
  4. Run ui-automation snapshot-ui again.
Expected Behavior

A tap that reports success performs the tap: the alert's button is activated and the alert is dismissed.

Actual Behavior

tap reports SUCCEEDED, but the alert remains and the snapshot is unchanged, across 3 attempts. As a workaround, ui-automation touch --json '{"elementRef":"<ref>","down":true,"up":true}' dismisses the alert.

Error Messages
None: the tap command reports success.
Lenguaje dominante
TypeScript
Estrellas
6.6k
Forks
329
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/MobileBuildMCP

Todos los issues de getsentry/MobileBuildMCP

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.