Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/protocols

Package Overview
Dependencies
Maintainers
3
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/protocols - npm Package Compare versions

Comparing version 8.10.2 to 8.11.0

17

build/commands/webdriverBidi.d.ts

@@ -1,20 +0,3 @@

import type { BidiResponse } from '../types.js';
export default interface WebdriverBidiCommands {
/**
* WebdriverBidi Protocol Command
*
* Send socket commands via WebDriver Bidi
* @ref https://github.com/w3c/webdriver-bidi
*
*/
send(params: object): Promise<BidiResponse>;
/**
* WebdriverBidi Protocol Command
*
* Send asynchronous socket commands via WebDriver Bidi
* @ref https://github.com/w3c/webdriver-bidi
*
*/
sendAsync(params: object): Promise<void>;
}
//# sourceMappingURL=webdriverBidi.d.ts.map

5

build/index.d.ts

@@ -9,3 +9,2 @@ import type AppiumCommands from './commands/appium.js';

import type WebDriverCommands from './commands/webdriver.js';
import type WebDriverBidiCommands from './commands/webdriverBidi.js';
import WebDriverProtocol from './protocols/webdriver.js';

@@ -20,7 +19,7 @@ import WebDriverBidiProtocol from './protocols/webdriverBidi.js';

import SeleniumProtocol from './protocols/selenium.js';
export interface ProtocolCommands extends WebDriverCommands, Omit<JSONWPCommands, keyof WebDriverCommands>, AppiumCommands, ChromiumCommands, Omit<MJSONWPCommands, keyof AppiumCommands | keyof ChromiumCommands>, SauceLabsCommands, SeleniumCommands, GeckoCommands, WebDriverBidiCommands {
export interface ProtocolCommands extends WebDriverCommands, Omit<JSONWPCommands, keyof WebDriverCommands>, AppiumCommands, ChromiumCommands, Omit<MJSONWPCommands, keyof AppiumCommands | keyof ChromiumCommands>, SauceLabsCommands, SeleniumCommands, GeckoCommands {
}
export * from './types.js';
export { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol, AppiumCommands, ChromiumCommands, JSONWPCommands, MJSONWPCommands, SauceLabsCommands, SeleniumCommands, WebDriverCommands, GeckoCommands, WebDriverBidiCommands };
export { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol, AppiumCommands, ChromiumCommands, JSONWPCommands, MJSONWPCommands, SauceLabsCommands, SeleniumCommands, WebDriverCommands, GeckoCommands };
export declare const CAPABILITY_KEYS: string[];
//# sourceMappingURL=index.d.ts.map

@@ -0,1 +1,15 @@

/**
* !!! 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/**
*/
declare const _default: {

@@ -31,6 +45,342 @@ sendCommand: {

}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"session.status": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"session.new": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"session.end": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"session.subscribe": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"session.unsubscribe": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"browser.close": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"browsingContext.captureScreenshot": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"browsingContext.close": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"browsingContext.create": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"browsingContext.getTree": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"browsingContext.handleUserPrompt": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"browsingContext.navigate": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"browsingContext.print": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"browsingContext.reload": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"script.addPreloadScript": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"script.disown": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"script.callFunction": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"script.evaluate": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"script.getRealms": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
returns: {
type: string;
name: string;
description: string;
};
};
};
"script.removePreloadScript": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"input.performActions": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
"input.releaseActions": {
socket: {
command: string;
description: string;
ref: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
};
};
export default _default;
//# sourceMappingURL=webdriverBidi.d.ts.map

452

build/protocols/webdriverBidi.js

@@ -0,37 +1,431 @@

/**
* !!! 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/**
*/
export default {
sendCommand: {
socket: {
command: 'send',
description: 'Send socket commands via WebDriver Bidi',
ref: 'https://github.com/w3c/webdriver-bidi',
parameters: [
"sendCommand": {
"socket": {
"command": "send",
"description": "Send socket commands via WebDriver Bidi",
"ref": "https://github.com/w3c/webdriver-bidi",
"parameters": [
{
name: 'params',
type: 'object',
description: 'socket payload',
required: true,
},
"name": "params",
"type": "CommandData",
"description": "socket payload",
"required": true
}
],
returns: {
type: 'Object',
name: 'response',
description: 'WebDriver Bidi response',
},
},
"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: [
"sendAsyncCommand": {
"socket": {
"command": "sendAsync",
"description": "Send asynchronous socket commands via WebDriver Bidi",
"ref": "https://github.com/w3c/webdriver-bidi",
"parameters": [
{
name: 'params',
type: 'object',
description: 'socket payload',
required: true,
},
"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": "<pre>{}</pre>",
"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": "<pre>{<br /> capabilities: SessionCapabilitiesRequest;<br />}</pre>",
"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 proxy: {\n proxyType?: \"pac\" | \"direct\" | \"autodetect\" | \"system\" | \"manual\";\n proxyAutoconfigUrl?: string;\n ftpProxy?: string;\n httpProxy?: string;\n noProxy?: string[];\n sslProxy?: string;\n socksProxy?: string;\n socksVersion?: number;\n };\n setWindowRect: boolean;\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": "<pre>{}</pre>",
"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": "<pre>{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />}</pre>",
"required": true
}
]
}
},
"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.SessionSubscriptionRequest`",
"description": "<pre>{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />}</pre>",
"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": "<pre>{}</pre>",
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
"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": "<pre>{<br /> type: BrowsingContextCreateType;<br /> referenceContext?: BrowsingContextBrowsingContext;<br />}</pre>",
"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": "<pre>{<br /> maxDepth?: JsUint;<br /> root?: BrowsingContextBrowsingContext;<br />}</pre>",
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> accept?: boolean;<br /> userText?: string;<br />}</pre>",
"required": true
}
]
}
},
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> url: string;<br /> wait?: BrowsingContextReadinessState;<br />}</pre>",
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> background?: boolean;<br /> margin?: BrowsingContextPrintMarginParameters;<br /> /\\*\\*<br /> \\* @default 'portrait'<br /> \\*/<br /> orientation?: \"portrait\" &#124; \"landscape\";<br /> page?: BrowsingContextPrintPageParameters;<br /> pageRanges?: (JsUint &#124; string)[];<br /> /\\*\\*<br /> \\* @default 1<br /> \\*/<br /> scale?: number;<br /> /\\*\\*<br /> \\* @default true<br /> \\*/<br /> shrinkToFit?: boolean;<br />}</pre>",
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> ignoreCache?: boolean;<br /> wait?: BrowsingContextReadinessState;<br />}</pre>",
"required": true
}
]
}
},
"script.addPreloadScript": {
"socket": {
"command": "scriptAddPreloadScriptCommand",
"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": "<pre>{<br /> functionDeclaration: string;<br /> arguments?: ScriptChannelValue[];<br /> sandbox?: string;<br />}</pre>",
"required": true
}
]
}
},
"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": "<pre>{<br /> handles: ScriptHandle[];<br /> target: ScriptTarget;<br />}</pre>",
"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": "<pre>{<br /> functionDeclaration: string;<br /> awaitPromise: boolean;<br /> target: ScriptTarget;<br /> arguments?: ScriptArgumentValue[];<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br /> this?: ScriptArgumentValue;<br />}</pre>",
"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": "<pre>{<br /> expression: string;<br /> target: ScriptTarget;<br /> awaitPromise: boolean;<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br />}</pre>",
"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": "<pre>{<br /> context?: BrowsingContextBrowsingContext;<br /> type?: ScriptRealmType;<br />}</pre>",
"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": "scriptRemovePreloadScriptCommand",
"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": "<pre>{<br /> script: ScriptPreloadScript;<br />}</pre>",
"required": true
}
]
}
},
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> actions: InputSourceActions[];<br />}</pre>",
"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": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
"required": true
}
]
}
}
};
{
"name": "@wdio/protocols",
"version": "8.10.2",
"version": "8.11.0",
"description": "Utility package providing information about automation protocols",

@@ -30,3 +30,3 @@ "author": "Christian Bromann <mail@bromann.dev>",

},
"gitHead": "fb163d506af31d0c5e5328bfee07d55a56aa0034"
"gitHead": "6fa7ae486537cbd3f6dd9e3bcc1812eb0acc6262"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc