/** * !!! PLEASE DO NOT EDIT THIS FILE !!! * * This source file, even though checked in, is auto-generated based on the * current development within the WebDriver Bidi spec. Any changes to this * file need to come from the specification. You can generate this file by calling * * ``` * $ npm run generate:bidi * ``` * * from the project root. You can find the scripts that generates this file in * ./scripts/bidi/** */ const protocol = { "sendCommand": { "socket": { "command": "send", "description": "Send socket commands via WebDriver Bidi", "ref": "https://github.com/w3c/webdriver-bidi", "parameters": [ { "name": "params", "type": "CommandData", "description": "socket payload", "required": true } ], "returns": { "type": "Object", "name": "CommandResponse", "description": "WebDriver Bidi response" } } }, "sendAsyncCommand": { "socket": { "command": "sendAsync", "description": "Send asynchronous socket commands via WebDriver Bidi", "ref": "https://github.com/w3c/webdriver-bidi", "parameters": [ { "name": "params", "type": "CommandData", "description": "socket payload", "required": true } ], "returns": { "type": "Number", "name": "id", "description": "id of WebDriver Bidi request" } } }, "session.status": { "socket": { "command": "sessionStatus", "description": "WebDriver Bidi command to send command method \"session.status\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-session-status", "parameters": [ { "name": "params", "type": "`remote.EmptyParams`", "description": "
\\{\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.SessionStatusResult", "description": "Command return value with the following interface:\n ```ts\n {\n ready: boolean;\n message: string;\n }\n ```" } } }, "session.new": { "socket": { "command": "sessionNew", "description": "WebDriver Bidi command to send command method \"session.new\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-session-new", "parameters": [ { "name": "params", "type": "`remote.SessionNewParameters`", "description": "
\\{
capabilities: SessionCapabilitiesRequest;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.SessionNewResult", "description": "Command return value with the following interface:\n ```ts\n {\n sessionId: string;\n capabilities: {\n acceptInsecureCerts: boolean;\n browserName: string;\n browserVersion: string;\n platformName: string;\n setWindowRect: boolean;\n userAgent: string;\n proxy?: SessionProxyConfiguration;\n unhandledPromptBehavior?: SessionUserPromptHandler;\n webSocketUrl?: string;\n };\n }\n ```" } } }, "session.end": { "socket": { "command": "sessionEnd", "description": "WebDriver Bidi command to send command method \"session.end\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-session-end", "parameters": [ { "name": "params", "type": "`remote.EmptyParams`", "description": "
\\{\\}
", "required": true } ] } }, "session.subscribe": { "socket": { "command": "sessionSubscribe", "description": "WebDriver Bidi command to send command method \"session.subscribe\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-session-subscribe", "parameters": [ { "name": "params", "type": "`remote.SessionSubscriptionRequest`", "description": "
\\{
events: string[];
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.SessionSubscribeResult", "description": "Command return value with the following interface:\n ```ts\n {\n subscription: SessionSubscription;\n }\n ```" } } }, "session.unsubscribe": { "socket": { "command": "sessionUnsubscribe", "description": "WebDriver Bidi command to send command method \"session.unsubscribe\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe", "parameters": [ { "name": "params", "type": "`remote.SessionUnsubscribeParameters`", "description": "
\\\\}
", "required": true } ] } }, "browser.close": { "socket": { "command": "browserClose", "description": "WebDriver Bidi command to send command method \"browser.close\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-close", "parameters": [ { "name": "params", "type": "`remote.EmptyParams`", "description": "
\\{\\}
", "required": true } ] } }, "browser.createUserContext": { "socket": { "command": "browserCreateUserContext", "description": "WebDriver Bidi command to send command method \"browser.createUserContext\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext", "parameters": [ { "name": "params", "type": "`remote.BrowserCreateUserContextParameters`", "description": "
\\{
acceptInsecureCerts?: boolean;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowserCreateUserContextResult", "description": "Command return value with the following interface:\n ```ts\n ;\n ```" } } }, "browser.getClientWindows": { "socket": { "command": "browserGetClientWindows", "description": "WebDriver Bidi command to send command method \"browser.getClientWindows\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-getClientWindows", "parameters": [ { "name": "params", "type": "`remote.EmptyParams`", "description": "
\\{\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowserGetClientWindowsResult", "description": "Command return value with the following interface:\n ```ts\n {\n clientWindows: BrowserClientWindowInfo[];\n }\n ```" } } }, "browser.getUserContexts": { "socket": { "command": "browserGetUserContexts", "description": "WebDriver Bidi command to send command method \"browser.getUserContexts\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts", "parameters": [ { "name": "params", "type": "`remote.EmptyParams`", "description": "
\\{\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowserGetUserContextsResult", "description": "Command return value with the following interface:\n ```ts\n {\n userContexts: BrowserUserContextInfo[];\n }\n ```" } } }, "browser.removeUserContext": { "socket": { "command": "browserRemoveUserContext", "description": "WebDriver Bidi command to send command method \"browser.removeUserContext\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext", "parameters": [ { "name": "params", "type": "`remote.BrowserRemoveUserContextParameters`", "description": "
\\{
userContext: BrowserUserContext;
\\}
", "required": true } ] } }, "browser.setClientWindowState": { "socket": { "command": "browserSetClientWindowState", "description": "WebDriver Bidi command to send command method \"browser.setClientWindowState\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-setClientWindowState", "parameters": [ { "name": "params", "type": "`remote.BrowserSetClientWindowStateParameters`", "description": "
\\{
clientWindow: BrowserClientWindow;
\\}
", "required": true } ] } }, "browsingContext.activate": { "socket": { "command": "browsingContextActivate", "description": "WebDriver Bidi command to send command method \"browsingContext.activate\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextActivateParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
\\}
", "required": true } ] } }, "browsingContext.captureScreenshot": { "socket": { "command": "browsingContextCaptureScreenshot", "description": "WebDriver Bidi command to send command method \"browsingContext.captureScreenshot\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextCaptureScreenshotParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
/\\*\\*
\\* @default 'viewport'
\\*/
origin?: \"viewport\" | \"document\";
format?: BrowsingContextImageFormat;
clip?: BrowsingContextClipRectangle;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowsingContextCaptureScreenshotResult", "description": "Command return value with the following interface:\n ```ts\n {\n data: string;\n }\n ```" } } }, "browsingContext.close": { "socket": { "command": "browsingContextClose", "description": "WebDriver Bidi command to send command method \"browsingContext.close\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-close", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextCloseParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
promptUnload?: boolean;
\\}
", "required": true } ] } }, "browsingContext.create": { "socket": { "command": "browsingContextCreate", "description": "WebDriver Bidi command to send command method \"browsingContext.create\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-create", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextCreateParameters`", "description": "
\\{
type: BrowsingContextCreateType;
referenceContext?: BrowsingContextBrowsingContext;
background?: boolean;
userContext?: BrowserUserContext;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowsingContextCreateResult", "description": "Command return value with the following interface:\n ```ts\n {\n context: BrowsingContextBrowsingContext;\n }\n ```" } } }, "browsingContext.getTree": { "socket": { "command": "browsingContextGetTree", "description": "WebDriver Bidi command to send command method \"browsingContext.getTree\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextGetTreeParameters`", "description": "
\\{
maxDepth?: JsUint;
root?: BrowsingContextBrowsingContext;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowsingContextGetTreeResult", "description": "Command return value with the following interface:\n ```ts\n {\n contexts: BrowsingContextInfoList;\n }\n ```" } } }, "browsingContext.handleUserPrompt": { "socket": { "command": "browsingContextHandleUserPrompt", "description": "WebDriver Bidi command to send command method \"browsingContext.handleUserPrompt\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextHandleUserPromptParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
accept?: boolean;
userText?: string;
\\}
", "required": true } ] } }, "browsingContext.locateNodes": { "socket": { "command": "browsingContextLocateNodes", "description": "WebDriver Bidi command to send command method \"browsingContext.locateNodes\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextLocateNodesParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
locator: BrowsingContextLocator;
maxNodeCount?: JsUint;
serializationOptions?: ScriptSerializationOptions;
startNodes?: ScriptSharedReference[];
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowsingContextLocateNodesResult", "description": "Command return value with the following interface:\n ```ts\n {\n nodes: ScriptNodeRemoteValue[];\n }\n ```" } } }, "browsingContext.navigate": { "socket": { "command": "browsingContextNavigate", "description": "WebDriver Bidi command to send command method \"browsingContext.navigate\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextNavigateParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
url: string;
wait?: BrowsingContextReadinessState;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowsingContextNavigateResult", "description": "Command return value with the following interface:\n ```ts\n {\n navigation: BrowsingContextNavigation | null;\n url: string;\n }\n ```" } } }, "browsingContext.print": { "socket": { "command": "browsingContextPrint", "description": "WebDriver Bidi command to send command method \"browsingContext.print\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-print", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextPrintParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
background?: boolean;
margin?: BrowsingContextPrintMarginParameters;
/\\*\\*
\\* @default 'portrait'
\\*/
orientation?: \"portrait\" | \"landscape\";
page?: BrowsingContextPrintPageParameters;
pageRanges?: (JsUint | string)[];
/\\*\\*
\\* @default 1
\\*/
scale?: number;
/\\*\\*
\\* @default true
\\*/
shrinkToFit?: boolean;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.BrowsingContextPrintResult", "description": "Command return value with the following interface:\n ```ts\n {\n data: string;\n }\n ```" } } }, "browsingContext.reload": { "socket": { "command": "browsingContextReload", "description": "WebDriver Bidi command to send command method \"browsingContext.reload\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextReloadParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
ignoreCache?: boolean;
wait?: BrowsingContextReadinessState;
\\}
", "required": true } ] } }, "browsingContext.setViewport": { "socket": { "command": "browsingContextSetViewport", "description": "WebDriver Bidi command to send command method \"browsingContext.setViewport\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextSetViewportParameters`", "description": "
\\{
context?: BrowsingContextBrowsingContext;
viewport?: BrowsingContextViewport | null;
devicePixelRatio?: number | null;
userContexts?: BrowserUserContext[];
\\}
", "required": true } ] } }, "browsingContext.traverseHistory": { "socket": { "command": "browsingContextTraverseHistory", "description": "WebDriver Bidi command to send command method \"browsingContext.traverseHistory\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory", "parameters": [ { "name": "params", "type": "`remote.BrowsingContextTraverseHistoryParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
delta: JsInt;
\\}
", "required": true } ] } }, "emulation.setGeolocationOverride": { "socket": { "command": "emulationSetGeolocationOverride", "description": "WebDriver Bidi command to send command method \"emulation.setGeolocationOverride\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-emulation-setGeolocationOverride", "parameters": [ { "name": "params", "type": "`remote.EmulationSetGeolocationOverrideParameters`", "description": "
\\\\}
", "required": true } ] } }, "network.addIntercept": { "socket": { "command": "networkAddIntercept", "description": "WebDriver Bidi command to send command method \"network.addIntercept\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-addIntercept", "parameters": [ { "name": "params", "type": "`remote.NetworkAddInterceptParameters`", "description": "
\\{
phases: NetworkInterceptPhase[];
contexts?: BrowsingContextBrowsingContext[];
urlPatterns?: NetworkUrlPattern[];
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.NetworkAddInterceptResult", "description": "Command return value with the following interface:\n ```ts\n {\n intercept: NetworkIntercept;\n }\n ```" } } }, "network.continueRequest": { "socket": { "command": "networkContinueRequest", "description": "WebDriver Bidi command to send command method \"network.continueRequest\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-continueRequest", "parameters": [ { "name": "params", "type": "`remote.NetworkContinueRequestParameters`", "description": "
\\{
request: NetworkRequest;
body?: NetworkBytesValue;
cookies?: NetworkCookieHeader[];
headers?: NetworkHeader[];
method?: string;
url?: string;
\\}
", "required": true } ] } }, "network.continueResponse": { "socket": { "command": "networkContinueResponse", "description": "WebDriver Bidi command to send command method \"network.continueResponse\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-continueResponse", "parameters": [ { "name": "params", "type": "`remote.NetworkContinueResponseParameters`", "description": "
\\{
request: NetworkRequest;
cookies?: NetworkSetCookieHeader[];
credentials?: NetworkAuthCredentials;
headers?: NetworkHeader[];
reasonPhrase?: string;
statusCode?: JsUint;
\\}
", "required": true } ] } }, "network.continueWithAuth": { "socket": { "command": "networkContinueWithAuth", "description": "WebDriver Bidi command to send command method \"network.continueWithAuth\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth", "parameters": [ { "name": "params", "type": "`remote.NetworkContinueWithAuthParameters`", "description": "
\\{
request: NetworkRequest;
\\}
", "required": true } ] } }, "network.failRequest": { "socket": { "command": "networkFailRequest", "description": "WebDriver Bidi command to send command method \"network.failRequest\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-failRequest", "parameters": [ { "name": "params", "type": "`remote.NetworkFailRequestParameters`", "description": "
\\{
request: NetworkRequest;
\\}
", "required": true } ] } }, "network.provideResponse": { "socket": { "command": "networkProvideResponse", "description": "WebDriver Bidi command to send command method \"network.provideResponse\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-provideResponse", "parameters": [ { "name": "params", "type": "`remote.NetworkProvideResponseParameters`", "description": "
\\{
request: NetworkRequest;
body?: NetworkBytesValue;
cookies?: NetworkSetCookieHeader[];
headers?: NetworkHeader[];
reasonPhrase?: string;
statusCode?: JsUint;
\\}
", "required": true } ] } }, "network.removeIntercept": { "socket": { "command": "networkRemoveIntercept", "description": "WebDriver Bidi command to send command method \"network.removeIntercept\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept", "parameters": [ { "name": "params", "type": "`remote.NetworkRemoveInterceptParameters`", "description": "
\\{
intercept: NetworkIntercept;
\\}
", "required": true } ] } }, "network.setCacheBehavior": { "socket": { "command": "networkSetCacheBehavior", "description": "WebDriver Bidi command to send command method \"network.setCacheBehavior\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-network-setCacheBehavior", "parameters": [ { "name": "params", "type": "`remote.NetworkSetCacheBehaviorParameters`", "description": "
\\{
cacheBehavior: \"default\" | \"bypass\";
contexts?: BrowsingContextBrowsingContext[];
\\}
", "required": true } ] } }, "script.addPreloadScript": { "socket": { "command": "scriptAddPreloadScript", "description": "WebDriver Bidi command to send command method \"script.addPreloadScript\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript", "parameters": [ { "name": "params", "type": "`remote.ScriptAddPreloadScriptParameters`", "description": "
\\{
functionDeclaration: string;
arguments?: ScriptChannelValue[];
contexts?: BrowsingContextBrowsingContext[];
userContexts?: BrowserUserContext[];
sandbox?: string;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.ScriptAddPreloadScriptResult", "description": "Command return value with the following interface:\n ```ts\n {\n script: ScriptPreloadScript;\n }\n ```" } } }, "script.disown": { "socket": { "command": "scriptDisown", "description": "WebDriver Bidi command to send command method \"script.disown\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-script-disown", "parameters": [ { "name": "params", "type": "`remote.ScriptDisownParameters`", "description": "
\\{
handles: ScriptHandle[];
target: ScriptTarget;
\\}
", "required": true } ] } }, "script.callFunction": { "socket": { "command": "scriptCallFunction", "description": "WebDriver Bidi command to send command method \"script.callFunction\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-script-callFunction", "parameters": [ { "name": "params", "type": "`remote.ScriptCallFunctionParameters`", "description": "
\\{
functionDeclaration: string;
awaitPromise: boolean;
target: ScriptTarget;
arguments?: ScriptLocalValue[];
resultOwnership?: ScriptResultOwnership;
serializationOptions?: ScriptSerializationOptions;
this?: ScriptLocalValue;
userActivation?: boolean;
\\}
", "required": true } ] } }, "script.evaluate": { "socket": { "command": "scriptEvaluate", "description": "WebDriver Bidi command to send command method \"script.evaluate\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-script-evaluate", "parameters": [ { "name": "params", "type": "`remote.ScriptEvaluateParameters`", "description": "
\\{
expression: string;
target: ScriptTarget;
awaitPromise: boolean;
resultOwnership?: ScriptResultOwnership;
serializationOptions?: ScriptSerializationOptions;
userActivation?: boolean;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.ScriptEvaluateResult", "description": "Command return value with the following interface:\n ```ts\n ;\n ```" } } }, "script.getRealms": { "socket": { "command": "scriptGetRealms", "description": "WebDriver Bidi command to send command method \"script.getRealms\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-script-getRealms", "parameters": [ { "name": "params", "type": "`remote.ScriptGetRealmsParameters`", "description": "
\\{
context?: BrowsingContextBrowsingContext;
type?: ScriptRealmType;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.ScriptGetRealmsResult", "description": "Command return value with the following interface:\n ```ts\n {\n realms: ScriptRealmInfo[];\n }\n ```" } } }, "script.removePreloadScript": { "socket": { "command": "scriptRemovePreloadScript", "description": "WebDriver Bidi command to send command method \"script.removePreloadScript\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript", "parameters": [ { "name": "params", "type": "`remote.ScriptRemovePreloadScriptParameters`", "description": "
\\{
script: ScriptPreloadScript;
\\}
", "required": true } ] } }, "storage.getCookies": { "socket": { "command": "storageGetCookies", "description": "WebDriver Bidi command to send command method \"storage.getCookies\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-storage-getCookies", "parameters": [ { "name": "params", "type": "`remote.StorageGetCookiesParameters`", "description": "
\\{
filter?: StorageCookieFilter;
partition?: StoragePartitionDescriptor;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.StorageGetCookiesResult", "description": "Command return value with the following interface:\n ```ts\n {\n cookies: NetworkCookie[];\n partitionKey: StoragePartitionKey;\n }\n ```" } } }, "storage.setCookie": { "socket": { "command": "storageSetCookie", "description": "WebDriver Bidi command to send command method \"storage.setCookie\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-storage-setCookie", "parameters": [ { "name": "params", "type": "`remote.StorageSetCookieParameters`", "description": "
\\{
cookie: StoragePartialCookie;
partition?: StoragePartitionDescriptor;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.StorageSetCookieResult", "description": "Command return value with the following interface:\n ```ts\n {\n partitionKey: StoragePartitionKey;\n }\n ```" } } }, "storage.deleteCookies": { "socket": { "command": "storageDeleteCookies", "description": "WebDriver Bidi command to send command method \"storage.deleteCookies\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies", "parameters": [ { "name": "params", "type": "`remote.StorageDeleteCookiesParameters`", "description": "
\\{
filter?: StorageCookieFilter;
partition?: StoragePartitionDescriptor;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.StorageDeleteCookiesResult", "description": "Command return value with the following interface:\n ```ts\n {\n partitionKey: StoragePartitionKey;\n }\n ```" } } }, "input.performActions": { "socket": { "command": "inputPerformActions", "description": "WebDriver Bidi command to send command method \"input.performActions\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-input-performActions", "parameters": [ { "name": "params", "type": "`remote.InputPerformActionsParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
actions: InputSourceActions[];
\\}
", "required": true } ] } }, "input.releaseActions": { "socket": { "command": "inputReleaseActions", "description": "WebDriver Bidi command to send command method \"input.releaseActions\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-input-releaseActions", "parameters": [ { "name": "params", "type": "`remote.InputReleaseActionsParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
\\}
", "required": true } ] } }, "input.setFiles": { "socket": { "command": "inputSetFiles", "description": "WebDriver Bidi command to send command method \"input.setFiles\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-input-setFiles", "parameters": [ { "name": "params", "type": "`remote.InputSetFilesParameters`", "description": "
\\{
context: BrowsingContextBrowsingContext;
element: ScriptSharedReference;
files: string[];
\\}
", "required": true } ] } }, "webExtension.install": { "socket": { "command": "webExtensionInstall", "description": "WebDriver Bidi command to send command method \"webExtension.install\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-webExtension-install", "parameters": [ { "name": "params", "type": "`remote.WebExtensionInstallParameters`", "description": "
\\{
extensionData: WebExtensionExtensionData;
\\}
", "required": true } ], "returns": { "type": "Object", "name": "local.WebExtensionInstallResult", "description": "Command return value with the following interface:\n ```ts\n {\n extension: WebExtensionExtension;\n }\n ```" } } }, "webExtension.uninstall": { "socket": { "command": "webExtensionUninstall", "description": "WebDriver Bidi command to send command method \"webExtension.uninstall\" with parameters.", "ref": "https://w3c.github.io/webdriver-bidi/#command-webExtension-uninstall", "parameters": [ { "name": "params", "type": "`remote.WebExtensionUninstallParameters`", "description": "
\\{
extension: WebExtensionExtension;
\\}
", "required": true } ] } } } as const export default protocol