> 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/action-shi-yong-zhi-nan/tab-and-popup/has-popup.md).

# Has popup

Has popup 是用于检测当前时刻屏幕上是否正在出现与指定标题相匹配的弹出窗口(Popup Window)的操作。检测结果将返回一个逻辑值(如果有 popup 则为 `True`,如果没有则为 `False`)并保存到一个变量中。

与 Wait popup(必须停下等待)不同,Has popup 只扫描一次便立即继续运行,帮助您为脚本推理出分支条件走向。

🎥 观看更多指导视频:[点击这里](https://youtu.be/oroexOGjZfw)。

#### 配置参数:

* Popup Title:您想要检测的 popup 窗口的标题(支持相对搜索,只需包含特征词组即可)。
* Output variable:用于保存检测结果的变量名称(取值为 `true` 或 `false`)。
* 更多使用方法请参见 [Switch to Popup](https://docs.gpmautomate.com/automate-zh/action-shi-yong-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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gpmautomate.com/automate-zh/action-shi-yong-zhi-nan/tab-and-popup/has-popup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
