{"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":"ol","attributes":{},"children":[{"$$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/04-tap-element"},"children":["点击元素"]}," 节点点击该元素。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["查找特定的视图树元素，然后通过 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/02-data-processing/01-run-js-script"},"children":["运行 JS 脚本"]}," 节点获取该元素的属性。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["查找特定的视图树元素，然后通过当前节点的输出检查该元素是否存在，类似于打印调试中的日志输出。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/05-appendix/02-what-is-a-view-tree"},"children":["什么是视图树？"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"参数","__idx":1},"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":["选择器类型"]}," 下拉列表"]}]},{"$$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":"p","attributes":{},"children":["如果选择“按查找元素”后，您可以通过以下 DOM 节点条件筛选元素。执行器会筛选出符合您设置的属性条件的元素。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["您可以在**[条件满足时]**中添加必需条件。支持以下 4 个条件，最多可同时支持 4 个并行筛选器："]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["text"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["fullId"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["class"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["desc"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":["[页面上存在多个匹配对象时]"]}]}]},{"$$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":["选择“获取单个元素”后，会出现此选项。您可以输入相应的索引号，例如，输入数字 1 表示获取第一个匹配元素。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["获取元素列表"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["“使用上一个元素”：直接匹配实际执行中元素的 DOM 节点。此功能通常与“查找元素”节点一起使用。"]},{"$$mdtype":"Tag","name":"ul","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":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["[找到元素后的延迟]"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"输出","__idx":2},"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":["输出参数"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["元素：以节点格式（实际上是 JSON）输出。您可以通过执行“运行 JS 脚本”直接解析元素中的内容。"]}]},{"$$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":"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":3},"children":["示例"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在 Android 系统的应用列表页面，您可以通过“查找元素”节点输出每个应用的 DOM 元素。下一步，您可以使用“循环”节点遍历每个应用程序的 DOM 元素，然后使用“运行 JS 脚本”节点检查每个应用程序的名称。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"配置","__idx":4},"children":["配置："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| 字段名称 | 字段值 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| -------------------------------------------------------- | ----------------------------------------------- |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["满足条件时"]}," | \"fullID\" 等于 \"com.android.launcher3:id/icon\" |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["页面上存在多个匹配对象时"]}," | 获取元素列表 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["等待元素出现的超时时间"]}," | 3000 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["找到元素后的延迟时间"]}," | 0 |"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"输出-1","__idx":5},"children":["输出："]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":5,"id":"输出参数","__idx":6},"children":["输出参数"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["“",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["元素列表"]},"”是一个列表，其值为："]},{"$$mdtype":"Tag","name":"details","attributes":{},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":["点击展开/折叠"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"    [ { \"isScrollable\": false, \"centerX\": 135, \"uuid\": \"1b03ee9a-91bd-457f-9981-7f2bfba0905b\", \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"index\": 0, \"isCheckable\": false, \"childCount\": 0, \"bounds\": { \"top\": 261, \"right\": 270, \"left\": 0, \"bottom\": 621 }, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"contentDescription\": \"Calendar\", \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"centerY\": 441, \"text\": \"Calendar\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"text\": \"Chrome\", \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"index\": 1, \"isCheckable\": false, \"uuid\": \"6446a15a-47e9-4ee3-adcd-8f63197653d4\", \"childCount\": 0, \"contentDescription\": \"Chrome\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"bounds\": { \"top\": 261, \"right\": 540, \"bottom\": 621, \"left\": 270 }, \"centerX\": 405, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"centerY\": 441, \"isVisibleToUser\": true }, { \"isScrollable\": false, \"centerX\": 675, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"uuid\": \"d5ae8607-be23-4166-a332-32911dc5eae0\", \"isCheckable\": false, \"childCount\": 0, \"index\": 2, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"text\": \"Clock\", \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"contentDescription\": \"Clock\", \"centerY\": 441, \"bounds\": { \"right\": 810, \"top\": 261, \"left\": 540, \"bottom\": 621 }, \"isVisibleToUser\": true }, { \"isScrollable\": false, \"contentDescription\": \"Contacts\", \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"index\": 3, \"childCount\": 0, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"text\": \"Contacts\", \"isFocusable\": true, \"isPassword\": false, \"centerX\": 945, \"uuid\": \"6f920c6c-221c-425c-b5b1-d438b1fc7fe9\", \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"centerY\": 441, \"bounds\": { \"top\": 261, \"right\": 1080, \"bottom\": 621, \"left\": 810 }, \"isVisibleToUser\": true }, { \"isScrollable\": false, \"centerX\": 135, \"centerY\": 801, \"bounds\": { \"bottom\": 981, \"right\": 270, \"left\": 0, \"top\": 621 }, \"isLongClickable\": true, \"text\": \"Files\", \"resourceId\": \"com.android.launcher3:id/icon\", \"contentDescription\": \"Files\", \"isCheckable\": false, \"childCount\": 0, \"packageName\": \"com.android.launcher3\", \"index\": 4, \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"uuid\": \"3e8b09e7-4948-4132-9ca8-0ca57cf5a12d\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"contentDescription\": \"Gallery\", \"centerY\": 801, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"index\": 5, \"text\": \"Gallery\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"centerX\": 405, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"uuid\": \"7b1b7b09-3ca0-422d-b35a-37ce26e2517b\", \"isVisibleToUser\": true, \"bounds\": { \"bottom\": 981, \"right\": 540, \"top\": 621, \"left\": 270 } }, { \"isScrollable\": false, \"centerY\": 801, \"centerX\": 675, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"bounds\": { \"right\": 810, \"bottom\": 981, \"top\": 621, \"left\": 540 }, \"index\": 6, \"contentDescription\": \"Gmail\", \"uuid\": \"9b8815b9-1079-4969-bf77-c3b27e4656f0\", \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true, \"text\": \"Gmail\" }, { \"isScrollable\": false, \"text\": \"Instagram\", \"centerY\": 801, \"uuid\": \"045888d5-9154-4a2a-b6da-649f6c54e9da\", \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"bounds\": { \"bottom\": 981, \"right\": 1080, \"top\": 621, \"left\": 810 }, \"isCheckable\": false, \"childCount\": 0, \"contentDescription\": \"Instagram\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"index\": 7, \"isFocusable\": true, \"isPassword\": false, \"centerX\": 945, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"index\": 8, \"uuid\": \"4ad6d1e9-02a4-4163-968b-b764968a2e1b\", \"centerX\": 135, \"text\": \"Messaging\", \"isLongClickable\": true, \"bounds\": { \"top\": 981, \"right\": 270, \"left\": 0, \"bottom\": 1341 }, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"centerY\": 1161, \"contentDescription\": \"Messaging\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"index\": 9, \"text\": \"MoreLogin Bot\", \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"centerY\": 1161, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"contentDescription\": \"MoreLogin Bot\", \"centerX\": 405, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"uuid\": \"fa990303-fa24-4c27-bc1b-32dec1d15fc7\", \"bounds\": { \"top\": 981, \"right\": 540, \"bottom\": 1341, \"left\": 270 }, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"index\": 10, \"bounds\": { \"right\": 810, \"top\": 981, \"left\": 540, \"bottom\": 1341 }, \"centerX\": 675, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"centerY\": 1161, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"contentDescription\": \"Open Camera\", \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"text\": \"Open Camera\", \"uuid\": \"55fd0ae2-cb1b-44f9-93af-91064aaebea2\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"index\": 11, \"contentDescription\": \"Phone\", \"bounds\": { \"top\": 981, \"right\": 1080, \"bottom\": 1341, \"left\": 810 }, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"uuid\": \"355737cc-e262-4c9a-872a-79ce9ff01bdd\", \"isCheckable\": false, \"childCount\": 0, \"centerY\": 1161, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"text\": \"Phone\", \"isFocusable\": true, \"isPassword\": false, \"centerX\": 945, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"centerX\": 135, \"index\": 12, \"uuid\": \"dec9c272-397c-4395-8985-e2e583d5a567\", \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"centerY\": 1521, \"isClickable\": true, \"text\": \"Play Store\", \"bounds\": { \"bottom\": 1701, \"right\": 270, \"left\": 0, \"top\": 1341 }, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"contentDescription\": \"Play Store\", \"isVisibleToUser\": true }, { \"isScrollable\": false, \"contentDescription\": \"Search\", \"index\": 13, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"bounds\": { \"bottom\": 1701, \"right\": 540, \"top\": 1341, \"left\": 270 }, \"childCount\": 0, \"text\": \"Search\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"centerX\": 405, \"isFocusable\": true, \"isPassword\": false, \"centerY\": 1521, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true, \"uuid\": \"5c96c836-ea08-49a8-809b-10e7efb218de\" }, { \"isScrollable\": false, \"uuid\": \"aaf1f6f6-109f-4b28-b0f4-1206f2fbeabc\", \"text\": \"Settings\", \"centerX\": 675, \"isLongClickable\": true, \"index\": 14, \"resourceId\": \"com.android.launcher3:id/icon\", \"isCheckable\": false, \"childCount\": 0, \"contentDescription\": \"Settings\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"isFocusable\": true, \"isPassword\": false, \"centerY\": 1521, \"isClickable\": true, \"bounds\": { \"right\": 810, \"bottom\": 1701, \"top\": 1341, \"left\": 540 }, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"isVisibleToUser\": true } ]\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在 Android 系统的应用列表页面，您可以通过“查找元素”节点输出符合条件的元素列表中第二个 DOM 元素的值。该元素可以通过“点击元素”节点进行点击。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"配置-1","__idx":7},"children":["配置："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| 字段名称 | 字段值 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| -------------------------------------------------------- | ---------------------------------------------- |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["满足条件时"]}," | \"fullID 等于 \"com.android.launcher3:id/icon\" |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["当页面上存在多个匹配对象时"]}," | \"获取单个元素\" |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["选择哪个元素？"]}," | \"2\" |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["等待元素出现的超时时间"]}," | \"3000\" |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["找到元素后的延迟时间"]}," | \"0\" |"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"输出-2","__idx":8},"children":["输出："]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":5,"id":"输出参数-1","__idx":9},"children":["输出参数"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["\"",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Element"]},"\" 是一个元素对象（JSON），其值为："]},{"$$mdtype":"Tag","name":"details","attributes":{},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":["点击展开/收起"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"    { \"isScrollable\": false, \"text\": \"Chrome\", \"bounds\": { \"top\": 261, \"right\": 540, \"bottom\": 621, \"left\": 270 }, \"isLongClickable\": true, \"resourceId\": \"com.android.launcher3:id/icon\", \"index\": 1, \"isCheckable\": false, \"childCount\": 0, \"contentDescription\": \"Chrome\", \"packageName\": \"com.android.launcher3\", \"isSelected\": false, \"centerX\": 405, \"isFocusable\": true, \"isPassword\": false, \"isClickable\": true, \"isChecked\": false, \"isFocused\": false, \"isEnabled\": true, \"className\": \"android.widget.TextView\", \"centerY\": 441, \"isVisibleToUser\": true, \"uuid\": \"4aa1242a-daa8-46dd-8bf4-f100f3cf228a\" }\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["您可以看到 contentDescription 的值为“Chrome”。下一步，您可以通过 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/04-tap-element"},"children":["点击元素"]}," 节点点击此元素。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"相关节点","__idx":10},"children":["相关节点"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$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/04-tap-element"},"children":["点击元素"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/03-node/02-data-processing/01-run-js-script"},"children":["运行 JS 脚本"]}]}]}]}]},"headings":[{"value":"查找元素","id":"查找元素","depth":1},{"value":"参数","id":"参数","depth":2},{"value":"输出","id":"输出","depth":2},{"value":"示例","id":"示例","depth":2},{"value":"配置：","id":"配置","depth":4},{"value":"输出：","id":"输出-1","depth":4},{"value":"输出参数","id":"输出参数","depth":5},{"value":"配置：","id":"配置-1","depth":4},{"value":"输出：","id":"输出-2","depth":4},{"value":"输出参数","id":"输出参数-1","depth":5},{"value":"相关节点","id":"相关节点","depth":2}],"frontmatter":{"seo":{"title":"查找元素"}},"lastModified":"2026-06-10T12:03:09.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/rparobotic-process-automation/03-node/01-simulation-operations/03-find-element","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}