> 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/tab-and-popup/popup.md).

# 有弹出窗口

Has popup 是一种用于检查当前屏幕上是否出现与指定标题匹配的弹出窗口（Popup Window）的操作。检查结果将返回逻辑值（`True` 如果有弹出窗口，或者 `False` 如果没有），并存储在一个变量中。

与 Wait popup（必须等待）不同，Has popup 只扫描一次，然后立即继续运行，帮助您推理条件分支以便于脚本执行。

#### 配置参数：

* Popup Title: 您想要检查的弹出窗口的标题（支持相对搜索，只需包含特征短语）。
* Output variable: 用于存储检查结果的变量名称（接收值 `true` 或 `false`）。
* 有关用法的更多信息，请参见 [Switch to Popup](/automate-zh/cao-zuo-zhi-nan/switch/switch-to-popup.md)。


---

# 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/tab-and-popup/popup.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.
