> 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/accept-alert.md).

# Accept alert

接受警报操作会自动点击系统通知对话框（Alert Dialog）上的“确定”或“确认”。此命令不需要配置参数。

🎥 查看更多教程视频：[在这里](https://youtu.be/3tDWBxDXRfw)。

### ⚠️ 使用注意事项

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

<figure><img src="/files/QsDDdR7PyuSSOjvrjbYy" alt=""><figcaption></figcaption></figure>


---

# 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/accept-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.
