> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 点击网页元素

## 指令说明

**描述：** 点击网页中的按钮、链接或者其他任何网页元素。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-click-01.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=5c7585c8791bb43999d8025df51a7d4a" alt="点击网页元素指令参数面板" width="653" height="318" data-path="helpcenter/commands/web-automation/images/web-click-01.png" />

    | 参数       | 说明                                    |
    | -------- | ------------------------------------- |
    | **网页对象** | 选择要操作的目标元素所在的网页对象                     |
    | **选择元素** | 选择要操作的目标元素，可从已有的元素库中选择，或者通过「捕获新元素」来捕获 |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-click-02.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=f663b744f3c5f21a02fd551f97c374c6" alt="点击网页元素指令高级参数面板" width="660" height="716" data-path="helpcenter/commands/web-automation/images/web-click-02.png" />

    | 参数            | 说明                                          |
    | ------------- | ------------------------------------------- |
    | **模拟人工点击**    | 模拟人工的方式触发点击事件，待点击元素被遮挡时可取消勾选                |
    | **点击方式**      | 下拉选择「单击」或者「双击」                              |
    | **鼠标按钮**      | 下拉选择「左键」或者「右键」                              |
    | **辅助按钮**      | 下拉选择「无」、「Ctrl」、「Shift」、「Alt」                |
    | **点击位置**      | 下拉选择「元素中心点」、「元素左上角」、「元素左下角」、「元素右上角」、「元素右下角」 |
    | **横向偏移量（px）** | 基于点击位置，水平方向的额外偏移量(像素)。正值表示向右偏移，负值表示向左偏移     |
    | **纵向偏移量（px）** | 基于点击位置，垂直方向的额外偏移量(像素)。正值表示向下偏移，负值表示向上偏移     |
    | **执行后延迟（s）**  | 指令执行完成后的等待时间                                |
    | **等待元素存在（s）** | 等待目标元素存在的超时时间                               |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-click-03.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=0c786a30da0ccbf2fb280f8096f93c2d" alt="点击网页元素使用示例 - 流程搭建" width="735" height="162" data-path="helpcenter/commands/web-automation/images/web-click-03.png" />

**该流程执行逻辑：**

使用【打开网页】指令在八爪鱼浏览器中打开目标网页

使用【点击网页元素】在网页中点击目标元素

### 效果展示

目标元素被成功点击，触发对应的页面响应或跳转。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-click-04.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=2797dcde3ed1115b23b5e86689f3b76a" alt="点击网页元素使用示例 - 效果展示" width="735" height="162" data-path="helpcenter/commands/web-automation/images/web-click-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-click-05.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=317268e571b4fbbd267f8c4d175599a9" alt="点击网页元素使用示例 - 效果展示 2" width="638" height="314" data-path="helpcenter/commands/web-automation/images/web-click-05.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-click-06.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=a37a0b6804626b9e77079f39a55007fc" alt="点击网页元素使用示例 - 效果展示 3" width="1352" height="183" data-path="helpcenter/commands/web-automation/images/web-click-06.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
