{"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":["RPA 提供三种模拟点击的方式："]},{"$$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":["点击元素"]},": 通过 UI 树的 DOM 元素定位并点击当前元素。"]}]},{"$$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":["点击(x, y)"]},": 通过当前屏幕的 X 轴和 Y 轴坐标定位点击位置。"]}]},{"$$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/06-click-via-ocr"},"children":["通过文本识别 (OCR) 点击"]},": 通过识别当前屏幕上的文本位置进行点击。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":["您可以在 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["[满足条件时]"]}," 中添加必需条件。支持以下 4 个条件，最多可同时支持 4 个并行筛选器："]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["文本"]}]},{"$$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":"MarkdownLink","attributes":{"href":"/zh/rparobotic-process-automation/02-using-rpa/04-developer-tools"},"children":["开发者工具"]},"获取当前云手机屏幕的元素属性。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["如果您已通过之前的节点选择过某个元素，则可以选择 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["[使用上一个元素]"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","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":"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":"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":"p","attributes":{},"children":["例如，在云手机桌面上有一个 Google Play 商店。我想通过元素查找找到并点击该区域。参数如下："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| 字段名称 | 字段值 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ------------------------- | -------------------------- |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["选择类型"]}," | 通过查找元素 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["满足条件时"]}," | \"text\" 等于 \"Play Store\" |"]},{"$$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":["点击类型"]}," | 单击 |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["点击后延迟"]}," | 0 |"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"相关节点","__idx":4},"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":["查找元素"]}]}]},"headings":[{"value":"点击元素","id":"点击元素","depth":1},{"value":"参数","id":"参数","depth":2},{"value":"输出","id":"输出","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/03-node/01-simulation-operations/04-tap-element","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}