BrowserContext.newPage() 方法
🌐 BrowserContext.newPage() method
🌐 Creates a new page in this browser context.
语法
🌐 Signature
class BrowserContext {
abstract newPage(options?: CreatePageOptions): Promise<Page>;
}
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
options |
(可选) 🌐 (Optional) |
返回:
Promise<Page>