Python: capture the native element tree per action in trace mode
Mantenedores costumam responder em até 1 dia
@vishnuv688 já está trabalhando nisso.
Desde 10/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
What
On a native Appium session, the Python adapter's trace actions carry a screenshot and nothing else: no element list, no locators, an empty A11y tab. The WebdriverIO service, Selenium (Node.js) and Nightwatch read the app's page source on every native action capture in trace mode (webdriverio/devtools#569 for the latter two), so their native traces carry the element tree. Python is the one ✕ in the capability matrix's "Native app element list and accessibility tree per action (trace mode)" row.
Why it happens
instrumentation.py takes no per-action snapshot on a native app: the action-snapshot path is gated off for native sessions, so only the row screenshot is recorded and no page source is read.
What a fix needs
- Read
GET /session/:id/sourceon each capturing command of a native session in trace mode, through the guarded executor so it renders no row and lands in no wait poll. - Build the snapshot text and element locators from it. Core's
fromPageSource(serializeMobileSnapshotplusgenerateAllElementLocators) does this in TypeScript; Python cannot import core, so either mirror it (withmirror-vectors.jsoncases) or have the backend build it, as it already does for other trace content Python cannot produce. - Take the platform from the session capabilities (
platformName, flat or underappium:options), as core'snativeAppOfdoes. - Skip a webview's HTML page source, as #569 does.
- Time it as the
pageSourceprobe underDEVTOOLS_CAPTURE_TIMING=1; it is the costly part of a native capture, most of it on iOS (#516). - Flip the Python cell in
packages/conformance/src/features.ts, regenerate the README and docs-site tables.
Follow-up from #516 / #563.
- Linguagem predominante
- TypeScript
- Estrelas
- 10
- Forks
- 4
- Merge médio
- 1d 11h
- PRs com merge (30d)
- 76
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
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 webdriverio/devtools
-
Trace: fetch/XHR response bodies hidden in the player on Safari (content.mimeType is empty)Talvez já em andamento @SergeyPirogov assumiu há 3 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
webdriverio/devtools#586 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 57/100
webdriverio/devtools#585 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 44/100
webdriverio/devtools#584 ·
Mantenedores costumam responder em até 1 dia
-
Trace query MCP server: let coding agents debug a failed run from its trace.zipTalvez já em andamento @vishnuv688 assumiu há 27 dias. Abertaenhancement
webdriverio/devtools#493 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de webdriverio/devtools
Issues semelhantes
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
garrytan/gbrain#10437 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Talvez já em andamento @acmerfight assumiu hoje. Abertauntriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
earendil-works/pi#12573 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
agentes-chat/agentes-chat#1506 ·
Mantenedores costumam responder em até 1 dia
-
comp/desktop desktop/files os/windows P2 type/perf
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
NousResearch/hermes-agent#160359 ·
Mantenedores costumam responder em até 1 dia
-
Missing repro Platform: Android
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
software-mansion/react-native-reanimated#11554 · 1 comentário ·
Mantenedores costumam responder em até 1 dia