Python: capture the native element tree per action in trace mode
Les mainteneurs répondent en général sous 1 jour
@vishnuv688 y travaille déjà.
Depuis le 10/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 10
- Forks
- 4
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 76
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de webdriverio/devtools
-
Trace: fetch/XHR response bodies hidden in the player on Safari (content.mimeType is empty)Peut-être pris @SergeyPirogov l’a pris il y a 3 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
webdriverio/devtools#586 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 57/100
webdriverio/devtools#585 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 44/100
webdriverio/devtools#584 ·
Les mainteneurs répondent en général sous 1 jour
-
Trace query MCP server: let coding agents debug a failed run from its trace.zipPeut-être pris @vishnuv688 l’a pris il y a 27 jours. Ouverteenhancement
webdriverio/devtools#493 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de webdriverio/devtools
Issues similaires
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
garrytan/gbrain#10437 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Peut-être pris @acmerfight l’a pris aujourd’hui. Ouverteuntriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
earendil-works/pi#12573 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
agentes-chat/agentes-chat#1506 ·
Les mainteneurs répondent en général sous 1 jour
-
comp/desktop desktop/files os/windows P2 type/perf
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
NousResearch/hermes-agent#160359 ·
Les mainteneurs répondent en général sous 1 jour
-
Missing repro Platform: Android
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
software-mansion/react-native-reanimated#11554 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour