[Bug]: ui-automation tap on an alert button's elementRef reports success but doesn't dismiss the alert
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 65/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- ios, typescript
- Domínio
- mobile
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Launch an app on an iOS 27 simulator so that it presents an alert with a single "OK" (or "Dismiss") button.
- Run
ui-automation snapshot-uiand take the button'selementRef. - Run
ui-automation tapwith thatelementRef. - Run
ui-automation snapshot-uiagain.
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 6.6k
- Forks
- 329
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/MobileBuildMCP
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
getsentry/MobileBuildMCP#495 ·
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 42/100
getsentry/MobileBuildMCP#577 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
getsentry/MobileBuildMCP#575 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
getsentry/MobileBuildMCP#571 ·
Todas as issues de getsentry/MobileBuildMCP
Issues semelhantes
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesTalvez já em andamento @tomaionescu assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
pola-rs/nodejs-polars#486 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
jaegertracing/jaeger-ui#4853 ·
Mantenedores costumam responder em até 1 dia
-
area/plugins platform/linux reproduced type/bug version/v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
anomalyco/opencode#66970 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
area:tui enhancement platform:macos
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Abertaapproved check:passed streams:add
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia