{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"开发者工具","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"开发者工具","__idx":0},"children":["开发者工具"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["我们提供开发者工具，帮助用户获取云手机视图树。您可以连接到我们的云手机，轻松获取视图树的结构和内容。编辑模板时，重要节点中使用的一些必要信息依赖于调试工具中的元素属性。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"步骤-1在编辑模板中选择云手机","__idx":1},"children":["步骤 1：在编辑模板中选择云手机"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["创建或修改模板时，点击右上角的“选择云手机”。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"步骤-2打开云手机调试器","__idx":2},"children":["步骤 2：打开云手机调试器"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["选择云手机后，点击右上角的“打开当前云手机”。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["云手机启动后，点击 ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/debug_icon.3b122e7e3f6674494dd5ff132314187282d18c12a3708da0f3b49adc5fcccb84.2582990d.png","style":{"width":"30px","height":"30px","verticalAlign":"middle","margin":"0 2px"}},"children":[]}," 按钮进入调试器。"]}]}]},{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/enter_debug.9f9dfe8d3a01eb6a86464bf2f47adbb85a979e6a90e1d6e455fd5684482af1d4.2582990d.png","style":{"width":"1400px","height":"400px","verticalAlign":"middle","margin":"0 2px","border":"1px solid #D9D9D9"}},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/phone_debug.c8ab38d3f5bb115f70d0560574197e4aab953c63871d641451f55f4ba572394d.2582990d.png","style":{"width":"1400px","height":"400px","verticalAlign":"middle","margin":"0 2px","border":"1px solid #D9D9D9"}},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"如何使用调试器","__idx":3},"children":["如何使用调试器？"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["快照模式"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["点击“创建快照”，调试器工具将保存当前云手机页面的 UI 树。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["在快照模式下，将鼠标悬停在左侧的云手机屏幕上，会显示一个红色方框，右侧的 UI 树会高亮显示相应的 DOM 元素。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["在快照模式下，页面不可点击交互，下方的虚拟按钮也将被禁用。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["关闭快照模式"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["点击调试工具右上角的“快照模式”开关即可关闭快照模式。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["关闭快照模式后，电话和虚拟按钮将恢复正常工作。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"元素属性说明","__idx":4},"children":["元素属性说明"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["X"]},"：元素在 X 轴上的中心点位置。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Y"]},"：元素在 Y 轴上的中心点位置。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["bounds"]},"：元素左上角和右下角的坐标，例如 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[789,96][1038,404]"]},"。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["相关节点：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/05-tap-x-y"},"children":["Tap(x, y)"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["text"]},"：控件上可见的文本内容，通常是用户可以直接看到的文本。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["fullID"]},"：在 Android 开发中，开发者会设置类似 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["android:id=\"@+id/btn_submit\""]}," 的 ID。fullID 是包含包名的完整形式（例如，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["com.example.app:id/btn_submit"]},"）。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["class"]},"：控件的 Android 系统类名，表示控件的“类型”（例如，按钮、文本框、列表等）。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["desc"]},"：控件的描述文本，也称为“内容描述”，主要用于辅助功能（例如，屏幕阅读器）。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["相关节点：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/03-find-element"},"children":["查找元素"]},"，",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/04-tap-element"},"children":["点击元素"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["包名"]},"：Android 系统为每个应用程序分配的唯一标识符，通常采用“反向域名 + 应用标识符”的格式（例如，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["com.taobao.taobao"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["com.tencent.mm"]},"）。它本质上是 Android 设备上每个应用程序的“身份证号”。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["相关节点：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/01-launch-app"},"children":["启动应用程序"]},"，",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/02-close-app"},"children":["关闭应用程序"]}]}]}]}]},"headings":[{"value":"开发者工具","id":"开发者工具","depth":1},{"value":"步骤 1：在编辑模板中选择云手机","id":"步骤-1在编辑模板中选择云手机","depth":2},{"value":"步骤 2：打开云手机调试器","id":"步骤-2打开云手机调试器","depth":2},{"value":"如何使用调试器？","id":"如何使用调试器","depth":2},{"value":"元素属性说明","id":"元素属性说明","depth":2}],"frontmatter":{"seo":{"title":"开发者工具"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/rparobotic-process-automation/02-using-rpa/04-developer-tools","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}