Skip to main content
Version: 23.5.0

Page.reload() 方法

¥Page.reload() method

重新加载页面。

¥Reloads the page.

签名

¥Signature

class Page {
abstract reload(options?: WaitForOptions): Promise<HTTPResponse | null>;
}

参数

¥Parameters

范围

类型

描述

options

WaitForOptions

(可选的)配置等待行为的选项。

Returns:

Promise<HTTPResponse | null>

解析为主要资源响应的 promise。如果存在多个重定向,导航将使用最后一个重定向的响应进行解析。

¥A promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect.