> 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/navigation/wait-url-changed.md).

# Wait URL Changed

Wait URL Changed 是一个操作,用于命令脚本暂停并持续监控浏览器的地址栏,直到当前路径(URL)跳转到新的地址为止,或者当达到指定的超时时间(Timeout)限制时,系统将自动跳过该操作。

🎥 观看更多操作指南视频:[点击这里](https://youtu.be/a9qNt96X1SM)。

#### 配置参数:

* Timeout (s):系统等待 URL 发生变化的最长限制时间(以秒为单位)。如果超过这个时间 URL 仍保持不变,脚本将自动跳转到下一个操作。

#### 实际示例:等待支付网关处理或跳转验证成功

当你设置使用第三方登录的流程时(例如在 Pinterest 上点击 *Continue with Google*),或者当你在电商网站上点击"支付/立即购买"按钮时,此操作非常有用:

* 配置方法:在触发跳转的点击操作之后,立即插入一个 Timeout 为 `30`(30 秒)的 Wait URL Changed 操作。
* 运行逻辑:与其凭感觉使用固定的 Delay 5-10 秒指令(如果网络良好则浪费时间,如果网络较弱则可能因点击失误而出错),系统会主动观察地址栏。一旦 Pinterest 成功从登录页面跳转回主页(`pinterest.com/home`),脚本将立即继续执行后续的交互步骤,而无需等待完整的 30 秒。


---

# 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/action-shi-yong-zhi-nan/navigation/wait-url-changed.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.
