Skip to main content
Version: 23.8.0

Page.goForward() 方法

¥Page.goForward() method

此方法导航到历史记录的下一页。

¥This method navigate to the next page in history.

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

options

WaitForOptions

(可选的)导航参数

Returns:

Promise<HTTPResponse | null>

解析为主要资源响应的 Promise。如果存在多个重定向,导航将使用最后一个重定向的响应进行解析。如果无法继续,则解决至 null

¥Promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect. If can not go forward, resolves to null.