Skip to main content
Version: 24.38.0

BrowserContextOptions 接口

🌐 BrowserContextOptions interface

语法

🌐 Signature

export interface BrowserContextOptions

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

downloadBehavior

optional

下载行为

下载文件时的行为定义。

🌐 Behavior definition for when downloading a file.

附注

如果未设置,将使用默认行为。

🌐 If not set, the default behavior will be used.

proxyBypassList

optional

string[]

绕过给定主机列表的代理。

🌐 Bypass the proxy for the given list of hosts.

proxyServer

optional

string

代理服务器,可选择端口用于所有请求。用户名和密码可以在 Page.authenticate 中设置。

🌐 Proxy server with optional port to use for all requests. Username and password can be set in Page.authenticate.