WaitForOptions 接口
🌐 WaitForOptions interface
语法
🌐 Signature
export interface WaitForOptions
属性
🌐 Properties
属性 🌐 Property | 修饰符 🌐 Modifiers | 类型 🌐 Type | 描述 🌐 Description | 默认 🌐 Default |
|---|---|---|---|---|
| signal |
| AbortSignal | 允许你取消调用的信号对象。 🌐 A signal object that allows you to cancel the call. | |
| timeout |
| number | 最大等待时间,单位为毫秒。传入 0 可禁用超时。 🌐 Maximum wait time in milliseconds. Pass 0 to disable the timeout. 默认值可以通过使用 Page.setDefaultTimeout() 或 Page.setDefaultNavigationTimeout() 方法来更改。 🌐 The default value can be changed by using the Page.setDefaultTimeout() or Page.setDefaultNavigationTimeout() methods. |
|
| waitUntil |
| [木偶师生命周期事件](./puppeteer.puppeteerlifecycleevent.md) |[木偶师生命周期事件](./puppeteer.puppeteerlifecycleevent.md)[] | 何时考虑等待成功。给定一个事件字符串数组,在所有事件都已触发后,等待被认为是成功的。 🌐 When to consider waiting succeeds. Given an array of event strings, waiting is considered to be successful after all events have been fired. |
|