acceptDownloads
authentication
AuthCredentialOptions
for structure.
Example: { username: "user", password: "password123" }
blockAds
BlockAdsOptions
for enabling specific categories.
Example: { ads: true, tracking: true }
blockRequests
BlockRequestsOptions
for specifying resource types to block (e.g., IMAGE, SCRIPT).
Example: { resourceTypes: [IMAGE, STYLESHEET] }
bypassCSP
defaultNavigationTimeout
defaultTimeout
device
Device
enum.
This sets viewport size, user agent, touch support, etc., to match the specified device.
Example: IPHONE_13_PRO_MAX
emulateMedia
EmulateMediaOptions
for details (e.g., { media: PRINT, colorScheme: DARK }
).
geolocation
GeolocationOptions
for latitude, longitude, and accuracy.
Example: { latitude: 51.5074, longitude: -0.1278 }
(London)
extraHTTPHeaders
{ "X-Custom-Auth": "some_token", "Accept-Language": "en-US" }
ignoreHTTPSErrors
javaScriptEnabled
locale
"en-US"
, "fr-FR"
, "ja-JP"
.
permissions
Permission
enum.
Example: [GEOLOCATION, CAMERA]
proxy
ProxyOptions
for server, username, password, and bypass list.
Example: { server: "http://myproxy.com:3128", username: "user", password: "proxyPassword" }
referer
"https://www.google.com/"
screen
ScreenOptions
for width and height.
This is different from viewport size; it represents the physical screen dimensions.
Example: { width: 1920, height: 1080 }
serviceWorkers
ServiceWorkerRegistration
enum (ALLOW or BLOCK).
Defaults to ALLOW.
storageState
StorageStateOptions
for the structure. Useful for restoring a previous session.
timeout
timezoneId
"America/New_York"
, "Europe/London"
, "Asia/Tokyo"
.
userAgent
"Mozilla/5.0 (compatible; MyCustomAgent/1.0)"
viewport
ViewportOptions
for width and height.
Example: { width: 1280, height: 720 }
waitUntil
LifecycleEvent
enum.
Defaults to an appropriate value like NETWORK_IDLE or LOAD.
Example: DOM_CONTENT_LOADED