> ## 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-close-01.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=5a12387f458829126421cc8f97cb15f9" alt="关闭网页指令参数面板" width="649" height="319" data-path="helpcenter/commands/web-automation/images/web-close-01.png" />

    | 参数       | 说明                                                             |
    | -------- | -------------------------------------------------------------- |
    | **操作**   | 选择关闭一个指定的网页还是关闭所有网页。关闭指定网页：仅关闭当前指定的网页对象；关闭所有网页：关闭当前浏览器的所有网页标签页 |
    | **网页对象** | 输入一个获取到的或者通过"打开网页"创建的网页对象                                      |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-close-02.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=6de67319e99947531db692aea7912aba" alt="关闭网页使用示例 - 流程搭建" width="808" height="185" data-path="helpcenter/commands/web-automation/images/web-close-02.png" />

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

使用【打开网页】指令打开目标网页，并保存网页对象

使用【关闭网页】指令关闭指定的网页标签页

### 效果展示

指定的网页标签页被成功关闭。RPA应用主流程运行结束后，建议养成【关闭网页】的习惯，释放网页资源消耗。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/web-automation/images/web-close-03.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=fc631755bb90b1a12593f07dafbb6480" alt="关闭网页使用示例 - 效果展示" width="1343" height="192" data-path="helpcenter/commands/web-automation/images/web-close-03.png" />

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