> ## 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/_udziDO1jBiOpIxe/helpcenter/commands/web-automation/images/web-popup-auto-01.png?fit=max&auto=format&n=_udziDO1jBiOpIxe&q=85&s=2afb20afa59d45e7850b9015a476420d" alt="自动处理网页弹窗指令参数面板" width="660" height="270" data-path="helpcenter/commands/web-automation/images/web-popup-auto-01.png" />

    本指令暂无参数。
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/_udziDO1jBiOpIxe/helpcenter/commands/web-automation/images/web-popup-auto-02.png?fit=max&auto=format&n=_udziDO1jBiOpIxe&q=85&s=85444df1e1e2eb4cde0521445b974603" alt="自动处理网页弹窗使用示例 - 流程搭建" width="1287" height="201" data-path="helpcenter/commands/web-automation/images/web-popup-auto-02.png" />

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

在流程开头添加【自动处理网页弹窗】指令

后续流程执行点击、输入等操作时

如果操作失败（元素被弹窗覆盖），会自动隐藏弹窗并重试操作

### 效果展示

当目标元素被弹窗遮挡导致操作失败时，自动处理弹窗并继续执行操作。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/_udziDO1jBiOpIxe/helpcenter/commands/web-automation/images/web-popup-auto-03.png?fit=max&auto=format&n=_udziDO1jBiOpIxe&q=85&s=fe777b9d9ca399c32cae438e2ae459e7" alt="自动处理网页弹窗使用示例 - 效果展示" width="1262" height="237" data-path="helpcenter/commands/web-automation/images/web-popup-auto-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/_udziDO1jBiOpIxe/helpcenter/commands/web-automation/images/web-popup-auto-04.png?fit=max&auto=format&n=_udziDO1jBiOpIxe&q=85&s=435e679d0d4a928b4fdec7d5f4aa4ab4" alt="自动处理网页弹窗使用示例 - 效果展示 2" width="1920" height="953" data-path="helpcenter/commands/web-automation/images/web-popup-auto-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/_udziDO1jBiOpIxe/helpcenter/commands/web-automation/images/web-popup-auto-05.png?fit=max&auto=format&n=_udziDO1jBiOpIxe&q=85&s=9d5058464c108ea130d7ed70c5fea5d1" alt="自动处理网页弹窗使用示例 - 效果展示 3" width="1920" height="953" data-path="helpcenter/commands/web-automation/images/web-popup-auto-05.png" />

### 使用小Tips

* 主流程第一行调用即可，一般一个应用调用一次即可
* 该指令只有在操作元素失败时，才会智能侦测并屏蔽弹窗，如果没有操作元素则不会屏蔽

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