> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/alert/cancel-alert.md).

# 取消警报

取消警报操作会自动点击系统通知对话框（Alert Dialog）上的取消或关闭按钮。此命令不需要配置参数。

### ⚠️ 使用注意事项

* 不适用于现代网页界面：使用 HTML/CSS 专门设计的对话框（Modal, Dialog UI）不是系统警报。对于这些类型，您必须使用相应的 XPath 进行鼠标点击。
* 无法处理浏览器弹出窗口：浏览器的安全通知（相机权限、位置、HTTP Basic Auth 验证等）无法通过此命令进行交互。请在运行脚本之前直接在 GPM 登录中配置权限。
* 执行机制：
  * 使用 Selenium：自动执行正确的取消操作以拒绝通知。
  * 使用 Puppeteer：此命令将在通知出现时立即忽略或取消通知（相当于执行 Dismiss 操作）。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/alert/cancel-alert.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
