These protocol commands are generated based on the current living
WebDriver Bidi specification. To enable the protocol
for your test make sure to have webSocketUrl: true set in your capabilities.
Browser support is not guaranteed and interfaces can change in the future. The standard is currently under development and browser vendors will add these capabilities based on their own timelines.
Last Updated: Wed Nov 04 2026 11:43:49 GMT+0000 (Coordinated Universal Time)
Send socket commands via WebDriver Bidi
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.send(params)
paramsCommandDataCommandResponse: WebDriver Bidi responseSend asynchronous socket commands via WebDriver Bidi
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.sendAsync(params)
paramsCommandDataid: id of WebDriver Bidi requestWebDriver Bidi command to send command method "session.status" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.sessionStatus(params)
paramsremote.EmptyParams{}local.SessionStatusResult: Command return value with the following interface:
{
ready: boolean;
message: string;
}
WebDriver Bidi command to send command method "session.new" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.sessionNew(params)
paramsremote.SessionNewParameters{
capabilities: SessionCapabilitiesRequest;
}local.SessionNewResult: Command return value with the following interface:
{
sessionId: string;
capabilities: SessionCapabilityResponse;
}
WebDriver Bidi command to send command method "session.end" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.sessionEnd(params)
paramsremote.EmptyParams{}local.SessionEndResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "session.subscribe" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.sessionSubscribe(params)
paramsremote.SessionSubscribeParameters{
events: string[];
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.SessionSubscribeResult: Command return value with the following interface:
{
subscription: SessionSubscription;
}
WebDriver Bidi command to send command method "session.unsubscribe" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.sessionUnsubscribe(params)
paramsremote.SessionUnsubscribeParameters{}local.SessionUnsubscribeResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browser.close" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserClose(params)
paramsremote.EmptyParams{}local.BrowserCloseResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browser.createUserContext" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserCreateUserContext(params)
paramsremote.BrowserCreateUserContextParameters{
acceptInsecureCerts?: boolean;
proxy?: SessionProxyConfiguration;
unhandledPromptBehavior?: SessionUserPromptHandler;
}local.BrowserCreateUserContextResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browser.getClientWindows" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserGetClientWindows(params)
paramsremote.EmptyParams{}local.BrowserGetClientWindowsResult: Command return value with the following interface:
{
clientWindows: BrowserClientWindowInfo[];
}
WebDriver Bidi command to send command method "browser.getUserContexts" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserGetUserContexts(params)
paramsremote.EmptyParams{}local.BrowserGetUserContextsResult: Command return value with the following interface:
{
userContexts: BrowserUserContextInfo[];
}
WebDriver Bidi command to send command method "browser.removeUserContext" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserRemoveUserContext(params)
paramsremote.BrowserRemoveUserContextParameters{
userContext: BrowserUserContext;
}local.BrowserRemoveUserContextResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browser.setClientWindowState" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserSetClientWindowState(params)
paramsremote.BrowserSetClientWindowStateParameters{
clientWindow: BrowserClientWindow;
};local.BrowserSetClientWindowStateResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browser.setDownloadBehavior" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browserSetDownloadBehavior(params)
paramsremote.BrowserSetDownloadBehaviorParameters{
downloadBehavior: BrowserDownloadBehavior | null;
userContexts?: BrowserUserContext[];
}local.BrowserSetDownloadBehaviorResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.activate" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextActivate(params)
paramsremote.BrowsingContextActivateParameters{
context: BrowsingContextBrowsingContext;
}local.BrowsingContextActivateResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextCaptureScreenshot(params)
paramsremote.BrowsingContextCaptureScreenshotParameters{
context: BrowsingContextBrowsingContext;
/**
* @default 'viewport'
*/
origin?: "viewport" | "document";
format?: BrowsingContextImageFormat;
clip?: BrowsingContextClipRectangle;
imageSize?: BrowsingContextImageSize;
}local.BrowsingContextCaptureScreenshotResult: Command return value with the following interface:
{
data: string;
}
WebDriver Bidi command to send command method "browsingContext.close" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextClose(params)
paramsremote.BrowsingContextCloseParameters{
context: BrowsingContextBrowsingContext;
promptUnload?: boolean;
}local.BrowsingContextCloseResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.create" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextCreate(params)
paramsremote.BrowsingContextCreateParameters{
type: BrowsingContextCreateType;
referenceContext?: BrowsingContextBrowsingContext;
background?: boolean;
userContext?: BrowserUserContext;
}local.BrowsingContextCreateResult: Command return value with the following interface:
{
context: BrowsingContextBrowsingContext;
userContext?: BrowserUserContext;
}
WebDriver Bidi command to send command method "browsingContext.getTree" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextGetTree(params)
paramsremote.BrowsingContextGetTreeParameters{
maxDepth?: JsUint;
root?: BrowsingContextBrowsingContext;
}local.BrowsingContextGetTreeResult: Command return value with the following interface:
{
contexts: BrowsingContextInfoList;
}
WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextHandleUserPrompt(params)
paramsremote.BrowsingContextHandleUserPromptParameters{
context: BrowsingContextBrowsingContext;
accept?: boolean;
userText?: string;
}local.BrowsingContextHandleUserPromptResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextLocateNodes(params)
paramsremote.BrowsingContextLocateNodesParameters{
context: BrowsingContextBrowsingContext;
locator: BrowsingContextLocator;
maxNodeCount?: JsUint;
serializationOptions?: ScriptSerializationOptions;
startNodes?: ScriptSharedReference[];
}local.BrowsingContextLocateNodesResult: Command return value with the following interface:
{
nodes: ScriptNodeRemoteValue[];
}
WebDriver Bidi command to send command method "browsingContext.navigate" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextNavigate(params)
paramsremote.BrowsingContextNavigateParameters{
context: BrowsingContextBrowsingContext;
url: string;
wait?: BrowsingContextReadinessState;
}local.BrowsingContextNavigateResult: Command return value with the following interface:
{
navigation: BrowsingContextNavigation | null;
url: string;
}
WebDriver Bidi command to send command method "browsingContext.print" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextPrint(params)
paramsremote.BrowsingContextPrintParameters{
context: BrowsingContextBrowsingContext;
background?: boolean;
margin?: BrowsingContextPrintMarginParameters;
/**
* @default 'portrait'
*/
orientation?: "portrait" | "landscape";
page?: BrowsingContextPrintPageParameters;
pageRanges?: (JsUint | string)[];
/**
* @default 1
*/
scale?: number;
/**
* @default true
*/
shrinkToFit?: boolean;
}local.BrowsingContextPrintResult: Command return value with the following interface:
{
data: string;
}
WebDriver Bidi command to send command method "browsingContext.reload" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextReload(params)
paramsremote.BrowsingContextReloadParameters{
context: BrowsingContextBrowsingContext;
ignoreCache?: boolean;
wait?: BrowsingContextReadinessState;
}local.BrowsingContextReloadResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.setBypassCSP" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextSetBypassCsp(params)
paramsremote.BrowsingContextSetBypassCspParameters{
bypass: true | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.BrowsingContextSetBypassCspResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextSetViewport(params)
paramsremote.BrowsingContextSetViewportParameters{
context?: BrowsingContextBrowsingContext;
viewport?: BrowsingContextViewport | null;
devicePixelRatio?: number | null;
userContexts?: BrowserUserContext[];
}local.BrowsingContextSetViewportResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "browsingContext.startScreencast" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextStartScreencast(params)
paramsremote.BrowsingContextStartScreencastParameters{
context: BrowsingContextBrowsingContext;
destinationFolder?: string;
mimeType?: string;
video?: BrowsingContextMediaTrackConstraints;
audio?: boolean;
}local.BrowsingContextStartScreencastResult: Command return value with the following interface:
{
screencast: BrowsingContextScreencast;
path: string;
}
WebDriver Bidi command to send command method "browsingContext.stopScreencast" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextStopScreencast(params)
paramsremote.BrowsingContextStopScreencastParameters{
screencast: BrowsingContextScreencast;
}local.BrowsingContextStopScreencastResult: Command return value with the following interface:
{
path: string;
error?: string;
}
WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.browsingContextTraverseHistory(params)
paramsremote.BrowsingContextTraverseHistoryParameters{
context: BrowsingContextBrowsingContext;
delta: JsInt;
}local.BrowsingContextTraverseHistoryResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setForcedColorsModeThemeOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetForcedColorsModeThemeOverride(params)
paramsremote.EmulationSetForcedColorsModeThemeOverrideParameters{
theme: EmulationForcedColorsModeTheme | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetForcedColorsModeThemeOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setGeolocationOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetGeolocationOverride(params)
paramsremote.EmulationSetGeolocationOverrideParameters{
coordinates: EmulationGeolocationCoordinates | null;
} | {
error: EmulationGeolocationPositionError;
}) & {
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
};local.EmulationSetGeolocationOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setLocaleOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetLocaleOverride(params)
paramsremote.EmulationSetLocaleOverrideParameters{
locale: string | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetLocaleOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setMediaFeaturesOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetMediaFeaturesOverride(params)
paramsremote.EmulationSetMediaFeaturesOverrideParameters{
features: EmulationMediaFeatures | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetMediaFeaturesOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setNetworkConditions" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetNetworkConditions(params)
paramsremote.EmulationSetNetworkConditionsParameters{
networkConditions: EmulationNetworkConditions | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetNetworkConditionsResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setScreenSettingsOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetScreenSettingsOverride(params)
paramsremote.EmulationSetScreenSettingsOverrideParameters{
screenArea: EmulationScreenArea | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetScreenSettingsOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setScreenOrientationOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetScreenOrientationOverride(params)
paramsremote.EmulationSetScreenOrientationOverrideParameters{
screenOrientation: EmulationScreenOrientation | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetScreenOrientationOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setUserAgentOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetUserAgentOverride(params)
paramsremote.EmulationSetUserAgentOverrideParameters{
userAgent: string | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetUserAgentOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setViewportMetaOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetViewportMetaOverride(params)
paramsremote.EmulationSetViewportMetaOverrideParameters{
viewportMeta: true | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetViewportMetaOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setScriptingEnabled" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetScriptingEnabled(params)
paramsremote.EmulationSetScriptingEnabledParameters{
enabled: false | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetScriptingEnabledResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setScrollbarTypeOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetScrollbarTypeOverride(params)
paramsremote.EmulationSetScrollbarTypeOverrideParameters{
scrollbarType: "classic" | "overlay" | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetScrollbarTypeOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setTextLayoutModeOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetTextLayoutModeOverride(params)
paramsremote.EmulationSetTextLayoutModeOverrideParameters{
textLayoutMode: EmulationTextLayoutMode | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetTextLayoutModeOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setTimezoneOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetTimezoneOverride(params)
paramsremote.EmulationSetTimezoneOverrideParameters{
timezone: string | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetTimezoneOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "emulation.setTouchOverride" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.emulationSetTouchOverride(params)
paramsremote.EmulationSetTouchOverrideParameters{
maxTouchPoints: JsUint | null;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.EmulationSetTouchOverrideResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.addDataCollector" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkAddDataCollector(params)
paramsremote.NetworkAddDataCollectorParameters{
dataTypes: NetworkDataType[];
maxEncodedDataSize: JsUint;
/**
* @default 'blob'
*/
collectorType?: NetworkCollectorType;
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.NetworkAddDataCollectorResult: Command return value with the following interface:
{
collector: NetworkCollector;
}
WebDriver Bidi command to send command method "network.addIntercept" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkAddIntercept(params)
paramsremote.NetworkAddInterceptParameters{
phases: NetworkInterceptPhase[];
contexts?: BrowsingContextBrowsingContext[];
urlPatterns?: NetworkUrlPattern[];
}local.NetworkAddInterceptResult: Command return value with the following interface:
{
intercept: NetworkIntercept;
}
WebDriver Bidi command to send command method "network.continueRequest" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkContinueRequest(params)
paramsremote.NetworkContinueRequestParameters{
request: NetworkRequest;
body?: NetworkBytesValue;
cookies?: NetworkCookieHeader[];
headers?: NetworkHeader[];
method?: string;
url?: string;
}local.NetworkContinueRequestResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.continueResponse" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkContinueResponse(params)
paramsremote.NetworkContinueResponseParameters{
request: NetworkRequest;
cookies?: NetworkSetCookieHeader[];
credentials?: NetworkAuthCredentials;
headers?: NetworkHeader[];
reasonPhrase?: string;
statusCode?: JsUint;
}local.NetworkContinueResponseResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.continueWithAuth" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkContinueWithAuth(params)
paramsremote.NetworkContinueWithAuthParameters{
request: NetworkRequest;
};local.NetworkContinueWithAuthResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.disownData" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkDisownData(params)
paramsremote.NetworkDisownDataParameters{
dataType: NetworkDataType;
collector: NetworkCollector;
request: NetworkRequest;
}local.NetworkDisownDataResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.failRequest" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkFailRequest(params)
paramsremote.NetworkFailRequestParameters{
request: NetworkRequest;
}local.NetworkFailRequestResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.getData" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkGetData(params)
paramsremote.NetworkGetDataParameters{
dataType: NetworkDataType;
collector?: NetworkCollector;
disown?: boolean;
request: NetworkRequest;
}local.NetworkGetDataResult: Command return value with the following interface:
{
bytes: NetworkBytesValue;
}
WebDriver Bidi command to send command method "network.provideResponse" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkProvideResponse(params)
paramsremote.NetworkProvideResponseParameters{
request: NetworkRequest;
body?: NetworkBytesValue;
cookies?: NetworkSetCookieHeader[];
headers?: NetworkHeader[];
reasonPhrase?: string;
statusCode?: JsUint;
}local.NetworkProvideResponseResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.removeDataCollector" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkRemoveDataCollector(params)
paramsremote.NetworkRemoveDataCollectorParameters{
collector: NetworkCollector;
}local.NetworkRemoveDataCollectorResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.removeIntercept" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkRemoveIntercept(params)
paramsremote.NetworkRemoveInterceptParameters{
intercept: NetworkIntercept;
}local.NetworkRemoveInterceptResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.setCacheBehavior" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkSetCacheBehavior(params)
paramsremote.NetworkSetCacheBehaviorParameters{
cacheBehavior: "default" | "bypass";
contexts?: BrowsingContextBrowsingContext[];
}local.NetworkSetCacheBehaviorResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "network.setExtraHeaders" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.networkSetExtraHeaders(params)
paramsremote.NetworkSetExtraHeadersParameters{
headers: NetworkHeader[];
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
}local.NetworkSetExtraHeadersResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "script.addPreloadScript" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.scriptAddPreloadScript(params)
paramsremote.ScriptAddPreloadScriptParameters{
functionDeclaration: string;
arguments?: ScriptChannelValue[];
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
sandbox?: string;
}local.ScriptAddPreloadScriptResult: Command return value with the following interface:
{
script: ScriptPreloadScript;
}
WebDriver Bidi command to send command method "script.disown" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.scriptDisown(params)
paramsremote.ScriptDisownParameters{
handles: ScriptHandle[];
target: ScriptTarget;
}local.ScriptDisownResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "script.callFunction" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.scriptCallFunction(params)
paramsremote.ScriptCallFunctionParameters{
functionDeclaration: string;
awaitPromise: boolean;
target: ScriptTarget;
arguments?: ScriptLocalValue[];
resultOwnership?: ScriptResultOwnership;
serializationOptions?: ScriptSerializationOptions;
this?: ScriptLocalValue;
userActivation?: boolean;
}local.ScriptCallFunctionResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "script.evaluate" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.scriptEvaluate(params)
paramsremote.ScriptEvaluateParameters{
expression: string;
target: ScriptTarget;
awaitPromise: boolean;
resultOwnership?: ScriptResultOwnership;
serializationOptions?: ScriptSerializationOptions;
userActivation?: boolean;
}local.ScriptEvaluateResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "script.getRealms" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.scriptGetRealms(params)
paramsremote.ScriptGetRealmsParameters{
context?: BrowsingContextBrowsingContext;
type?: ScriptRealmType;
}local.ScriptGetRealmsResult: Command return value with the following interface:
{
realms: ScriptRealmInfo[];
}
WebDriver Bidi command to send command method "script.removePreloadScript" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.scriptRemovePreloadScript(params)
paramsremote.ScriptRemovePreloadScriptParameters{
script: ScriptPreloadScript;
}local.ScriptRemovePreloadScriptResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "storage.getCookies" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.storageGetCookies(params)
paramsremote.StorageGetCookiesParameters{
filter?: StorageCookieFilter;
partition?: StoragePartitionDescriptor;
}local.StorageGetCookiesResult: Command return value with the following interface:
{
cookies: NetworkCookie[];
partitionKey: StoragePartitionKey;
}
WebDriver Bidi command to send command method "storage.setCookie" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.storageSetCookie(params)
paramsremote.StorageSetCookieParameters{
cookie: StoragePartialCookie;
partition?: StoragePartitionDescriptor;
}local.StorageSetCookieResult: Command return value with the following interface:
{
partitionKey: StoragePartitionKey;
}
WebDriver Bidi command to send command method "storage.deleteCookies" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.storageDeleteCookies(params)
paramsremote.StorageDeleteCookiesParameters{
filter?: StorageCookieFilter;
partition?: StoragePartitionDescriptor;
}local.StorageDeleteCookiesResult: Command return value with the following interface:
{
partitionKey: StoragePartitionKey;
}
WebDriver Bidi command to send command method "input.performActions" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.inputPerformActions(params)
paramsremote.InputPerformActionsParameters{
context: BrowsingContextBrowsingContext;
actions: InputSourceActions[];
}local.InputPerformActionsResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "input.releaseActions" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.inputReleaseActions(params)
paramsremote.InputReleaseActionsParameters{
context: BrowsingContextBrowsingContext;
}local.InputReleaseActionsResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "input.setFiles" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.inputSetFiles(params)
paramsremote.InputSetFilesParameters{
context: BrowsingContextBrowsingContext;
element: ScriptSharedReference;
files: string[];
}local.InputSetFilesResult: Command return value with the following interface:
;
WebDriver Bidi command to send command method "webExtension.install" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.webExtensionInstall(params)
paramsremote.WebExtensionInstallParameters{
extensionData: WebExtensionExtensionData;
}local.WebExtensionInstallResult: Command return value with the following interface:
{
extension: WebExtensionExtension;
}
WebDriver Bidi command to send command method "webExtension.uninstall" with parameters.
WebDriver Bidi Protocol command. More details can be found in the official protocol docs.
await browser.webExtensionUninstall(params)
paramsremote.WebExtensionUninstallParameters{
extension: WebExtensionExtension;
}local.WebExtensionUninstallResult: Command return value with the following interface:
;