> ## 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/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-hover-01.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=1ce059b2813bcd2becc42a09b7606c7e" alt="鼠标悬停在网页元素上指令参数面板" width="660" height="326" data-path="helpcenter/commands/web-automation/images/web-hover-01.png" />

    | 参数         | 说明                                              |
    | ---------- | ----------------------------------------------- |
    | **模拟人工悬停** | 如果勾选模拟人工悬停，则通过模拟人工的方式触发悬停事件，否则将根据目标元素的自动化接口触发悬停 |
    | **网页对象**   | 选择一个之前通过【打开网页】或【获取已打开的网页对象】指令创建的网页对象            |
    | **选择元素**   | 选择要操作的目标元素，可从已有的元素库中选择，或者通过「捕获新元素」来捕获           |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-hover-02.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=46a2091ae004a1d474bca2793a4bcd15" alt="鼠标悬停在网页元素上高级参数面板" width="660" height="380" data-path="helpcenter/commands/web-automation/images/web-hover-02.png" />

    | 参数            | 说明            |
    | ------------- | ------------- |
    | **执行后延迟（s）**  | 指令执行完成后的等待时间  |
    | **等待元素存在（s）** | 等待目标元素存在的超时时间 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-hover-03.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=bdc096b64f5b167bbdc496941c8d3aac" alt="鼠标悬停在网页元素上使用示例 - 流程搭建" width="1067" height="173" data-path="helpcenter/commands/web-automation/images/web-hover-03.png" />

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

使用【打开网页】指令打开目标网页

使用【鼠标悬停在元素上(web)】将鼠标悬停在指定元素上

鼠标移动到指定位置后会显示下拉菜单或触发悬浮效果

### 效果展示

鼠标成功移动到指定元素上方，触发悬浮效果（如下拉菜单展示）。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-hover-04.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=6e8247fda3b611320bf0bc0c8309e443" alt="鼠标悬停在网页元素上使用示例 - 效果展示" width="1051" height="498" data-path="helpcenter/commands/web-automation/images/web-hover-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2nc_spg9_b4MXqPM/helpcenter/commands/web-automation/images/web-hover-05.png?fit=max&auto=format&n=2nc_spg9_b4MXqPM&q=85&s=e11fc0d3b1d3fda87c72b28f0c326807" alt="鼠标悬停在网页元素上使用示例 - 效果展示 2" width="1053" height="200" data-path="helpcenter/commands/web-automation/images/web-hover-05.png" />

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