Skip to main content
Version: 24.38.0

WaitTimeoutOptions 接口

🌐 WaitTimeoutOptions interface

语法

🌐 Signature

export interface WaitTimeoutOptions

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

signal

optional

AbortSignal

允许你取消 waitFor 调用的信号对象。

🌐 A signal object that allows you to cancel a waitFor call.

timeout

optional

number

最大等待时间,单位为毫秒。传入 0 可禁用超时。

🌐 Maximum wait time in milliseconds. Pass 0 to disable the timeout.

可以使用 Page.setDefaultTimeout() 方法来更改默认值。

🌐 The default value can be changed by using the Page.setDefaultTimeout() method.

30_000