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.1.0 to 8.2.0

124

build/commands/appium.d.ts

@@ -10,3 +10,3 @@ import type { StringsReturn, SettingsReturn, ProtocolCommandResponse } from '../types.js';

*/
shake(): void;
shake(): Promise<void>;
/**

@@ -19,3 +19,3 @@ * Appium Protocol Command

*/
lock(seconds?: number): void;
lock(seconds?: number): Promise<void>;
/**

@@ -28,3 +28,3 @@ * Appium Protocol Command

*/
unlock(): void;
unlock(): Promise<void>;
/**

@@ -37,3 +37,3 @@ * Appium Protocol Command

*/
isLocked(): boolean;
isLocked(): Promise<boolean>;
/**

@@ -46,3 +46,3 @@ * Appium Protocol Command

*/
startRecordingScreen(options?: object): void;
startRecordingScreen(options?: object): Promise<void>;
/**

@@ -55,3 +55,3 @@ * Appium Protocol Command

*/
stopRecordingScreen(remotePath?: string, username?: string, password?: string, method?: string): string;
stopRecordingScreen(remotePath?: string, username?: string, password?: string, method?: string): Promise<string>;
/**

@@ -64,3 +64,3 @@ * Appium Protocol Command

*/
getPerformanceDataTypes(): string[];
getPerformanceDataTypes(): Promise<string[]>;
/**

@@ -73,3 +73,3 @@ * Appium Protocol Command

*/
getPerformanceData(packageName: string, dataType: string, dataReadTimeout?: number): string[];
getPerformanceData(packageName: string, dataType: string, dataReadTimeout?: number): Promise<string[]>;
/**

@@ -82,3 +82,3 @@ * Appium Protocol Command

*/
pressKeyCode(keycode: number, metastate?: number, flags?: number): void;
pressKeyCode(keycode: number, metastate?: number, flags?: number): Promise<void>;
/**

@@ -91,3 +91,3 @@ * Appium Protocol Command

*/
longPressKeyCode(keycode: number, metastate?: number, flags?: number): void;
longPressKeyCode(keycode: number, metastate?: number, flags?: number): Promise<void>;
/**

@@ -100,3 +100,3 @@ * Appium Protocol Command

*/
sendKeyEvent(keycode: string, metastate?: string): void;
sendKeyEvent(keycode: string, metastate?: string): Promise<void>;
/**

@@ -109,3 +109,3 @@ * Appium Protocol Command

*/
rotateDevice(x: number, y: number, radius: number, rotation: number, touchCount: number, duration: number, element?: string): void;
rotateDevice(x: number, y: number, radius: number, rotation: number, touchCount: number, duration: number, element?: string): Promise<void>;
/**

@@ -118,3 +118,3 @@ * Appium Protocol Command

*/
getCurrentActivity(): string;
getCurrentActivity(): Promise<string>;
/**

@@ -127,3 +127,3 @@ * Appium Protocol Command

*/
getCurrentPackage(): string;
getCurrentPackage(): Promise<string>;
/**

@@ -136,3 +136,3 @@ * Appium Protocol Command

*/
installApp(appPath: string): void;
installApp(appPath: string): Promise<void>;
/**

@@ -145,3 +145,3 @@ * Appium Protocol Command

*/
activateApp(appId: string): void;
activateApp(appId: string): Promise<void>;
/**

@@ -154,3 +154,3 @@ * Appium Protocol Command

*/
removeApp(appId: string): void;
removeApp(appId: string): Promise<void>;
/**

@@ -163,3 +163,3 @@ * Appium Protocol Command

*/
terminateApp(appId: string): void;
terminateApp(appId: string): Promise<void>;
/**

@@ -172,3 +172,3 @@ * Appium Protocol Command

*/
isAppInstalled(appId: string): boolean;
isAppInstalled(appId: string): Promise<boolean>;
/**

@@ -181,3 +181,3 @@ * Appium Protocol Command

*/
queryAppState(appId: string): number;
queryAppState(appId: string): Promise<number>;
/**

@@ -190,3 +190,3 @@ * Appium Protocol Command

*/
hideKeyboard(strategy?: string, key?: string, keyCode?: string, keyName?: string): void;
hideKeyboard(strategy?: string, key?: string, keyCode?: string, keyName?: string): Promise<void>;
/**

@@ -199,3 +199,3 @@ * Appium Protocol Command

*/
isKeyboardShown(): boolean;
isKeyboardShown(): Promise<boolean>;
/**

@@ -208,3 +208,3 @@ * Appium Protocol Command

*/
pushFile(path: string, data: string): void;
pushFile(path: string, data: string): Promise<void>;
/**

@@ -217,3 +217,3 @@ * Appium Protocol Command

*/
pullFile(path: string): string;
pullFile(path: string): Promise<string>;
/**

@@ -226,3 +226,3 @@ * Appium Protocol Command

*/
pullFolder(path: string): void;
pullFolder(path: string): Promise<void>;
/**

@@ -235,3 +235,3 @@ * Appium Protocol Command

*/
toggleAirplaneMode(): void;
toggleAirplaneMode(): Promise<void>;
/**

@@ -244,3 +244,3 @@ * Appium Protocol Command

*/
toggleData(): void;
toggleData(): Promise<void>;
/**

@@ -253,3 +253,3 @@ * Appium Protocol Command

*/
toggleWiFi(): void;
toggleWiFi(): Promise<void>;
/**

@@ -262,3 +262,3 @@ * Appium Protocol Command

*/
toggleLocationServices(): void;
toggleLocationServices(): Promise<void>;
/**

@@ -271,3 +271,3 @@ * Appium Protocol Command

*/
toggleNetworkSpeed(netspeed: string): void;
toggleNetworkSpeed(netspeed: string): Promise<void>;
/**

@@ -280,3 +280,3 @@ * Appium Protocol Command

*/
openNotifications(): void;
openNotifications(): Promise<void>;
/**

@@ -289,3 +289,3 @@ * Appium Protocol Command

*/
startActivity(appPackage: string, appActivity: string, appWaitPackage?: string, appWaitActivity?: string, intentAction?: string, intentCategory?: string, intentFlags?: string, optionalIntentArguments?: string, dontStopAppOnReset?: string): void;
startActivity(appPackage: string, appActivity: string, appWaitPackage?: string, appWaitActivity?: string, intentAction?: string, intentCategory?: string, intentFlags?: string, optionalIntentArguments?: string, dontStopAppOnReset?: string): Promise<void>;
/**

@@ -298,3 +298,3 @@ * Appium Protocol Command

*/
getSystemBars(): object[];
getSystemBars(): Promise<object[]>;
/**

@@ -307,3 +307,3 @@ * Appium Protocol Command

*/
getDeviceTime(): string;
getDeviceTime(): Promise<string>;
/**

@@ -316,3 +316,3 @@ * Appium Protocol Command

*/
getDisplayDensity(): any;
getDisplayDensity(): Promise<any>;
/**

@@ -325,3 +325,3 @@ * Appium Protocol Command

*/
touchId(match: boolean): void;
touchId(match: boolean): Promise<void>;
/**

@@ -334,3 +334,3 @@ * Appium Protocol Command

*/
toggleEnrollTouchId(enabled?: boolean): void;
toggleEnrollTouchId(enabled?: boolean): Promise<void>;
/**

@@ -343,3 +343,3 @@ * Appium Protocol Command

*/
launchApp(): void;
launchApp(): Promise<void>;
/**

@@ -352,3 +352,3 @@ * Appium Protocol Command

*/
closeApp(): void;
closeApp(): Promise<void>;
/**

@@ -361,3 +361,3 @@ * Appium Protocol Command

*/
background(seconds: (number | null)): void;
background(seconds: (number | null)): Promise<void>;
/**

@@ -370,3 +370,3 @@ * Appium Protocol Command

*/
endCoverage(intent: string, path: string): void;
endCoverage(intent: string, path: string): Promise<void>;
/**

@@ -379,3 +379,3 @@ * Appium Protocol Command

*/
getStrings(language?: string, stringFile?: string): StringsReturn;
getStrings(language?: string, stringFile?: string): Promise<StringsReturn>;
/**

@@ -388,3 +388,3 @@ * Appium Protocol Command

*/
setValueImmediate(elementId: string, value: string): void;
setValueImmediate(elementId: string, value: string): Promise<void>;
/**

@@ -397,3 +397,3 @@ * Appium Protocol Command

*/
replaceValue(elementId: string, value: string): void;
replaceValue(elementId: string, value: string): Promise<void>;
/**

@@ -406,3 +406,3 @@ * Appium Protocol Command

*/
getSettings(): SettingsReturn;
getSettings(): Promise<SettingsReturn>;
/**

@@ -415,3 +415,3 @@ * Appium Protocol Command

*/
updateSettings(settings: object): void;
updateSettings(settings: object): Promise<void>;
/**

@@ -424,3 +424,3 @@ * Appium Protocol Command

*/
receiveAsyncResponse(response: object): void;
receiveAsyncResponse(response: object): Promise<void>;
/**

@@ -433,3 +433,3 @@ * Appium Protocol Command

*/
gsmCall(phoneNumber: string, action: string): void;
gsmCall(phoneNumber: string, action: string): Promise<void>;
/**

@@ -442,3 +442,3 @@ * Appium Protocol Command

*/
gsmSignal(signalStrength: string, signalStrengh?: string): void;
gsmSignal(signalStrength: string, signalStrengh?: string): Promise<void>;
/**

@@ -451,3 +451,3 @@ * Appium Protocol Command

*/
powerCapacity(percent: number): void;
powerCapacity(percent: number): Promise<void>;
/**

@@ -460,3 +460,3 @@ * Appium Protocol Command

*/
powerAC(state: string): void;
powerAC(state: string): Promise<void>;
/**

@@ -469,3 +469,3 @@ * Appium Protocol Command

*/
gsmVoice(state: string): void;
gsmVoice(state: string): Promise<void>;
/**

@@ -478,3 +478,3 @@ * Appium Protocol Command

*/
sendSms(phoneNumber: string, message: string): void;
sendSms(phoneNumber: string, message: string): Promise<void>;
/**

@@ -487,3 +487,3 @@ * Appium Protocol Command

*/
fingerPrint(fingerprintId: number): void;
fingerPrint(fingerprintId: number): Promise<void>;
/**

@@ -496,3 +496,3 @@ * Appium Protocol Command

*/
setClipboard(content: string, contentType?: string, label?: string): string;
setClipboard(content: string, contentType?: string, label?: string): Promise<string>;
/**

@@ -505,3 +505,3 @@ * Appium Protocol Command

*/
getClipboard(contentType?: string): string;
getClipboard(contentType?: string): Promise<string>;
/**

@@ -552,3 +552,3 @@ * Appium Protocol Command

*/
touchPerform(actions: object[]): void;
touchPerform(actions: object[]): Promise<void>;
/**

@@ -561,3 +561,3 @@ * Appium Protocol Command

*/
multiTouchPerform(actions: object[]): void;
multiTouchPerform(actions: object[]): Promise<void>;
/**

@@ -570,3 +570,3 @@ * Appium Protocol Command

*/
driverScript(script: string, type?: string, timeout?: number): ProtocolCommandResponse;
driverScript(script: string, type?: string, timeout?: number): Promise<ProtocolCommandResponse>;
/**

@@ -579,3 +579,3 @@ * Appium Protocol Command

*/
getEvents(type: string[]): ProtocolCommandResponse;
getEvents(type: string[]): Promise<ProtocolCommandResponse>;
/**

@@ -588,3 +588,3 @@ * Appium Protocol Command

*/
logEvent(vendor: string, event: string): void;
logEvent(vendor: string, event: string): Promise<void>;
/**

@@ -597,4 +597,4 @@ * Appium Protocol Command

*/
compareImages(mode: string, firstImage: string, secondImage: string, options: object): ProtocolCommandResponse;
compareImages(mode: string, firstImage: string, secondImage: string, options: object): Promise<ProtocolCommandResponse>;
}
//# sourceMappingURL=appium.d.ts.map

@@ -16,3 +16,3 @@ import type { ProtocolCommandResponse } from '../types.js';

*/
isAlertOpen(): boolean;
isAlertOpen(): Promise<boolean>;
/**

@@ -25,3 +25,3 @@ * Chromium Protocol Command

*/
isAutoReporting(): boolean;
isAutoReporting(): Promise<boolean>;
/**

@@ -49,3 +49,3 @@ * Chromium Protocol Command

*/
setAutoReporting(enabled: boolean): object | null;
setAutoReporting(enabled: boolean): Promise<object | null>;
/**

@@ -64,3 +64,3 @@ * Chromium Protocol Command

*/
isLoading(): boolean;
isLoading(): Promise<boolean>;
/**

@@ -73,3 +73,3 @@ * Chromium Protocol Command

*/
takeHeapSnapshot(): ProtocolCommandResponse;
takeHeapSnapshot(): Promise<ProtocolCommandResponse>;
/**

@@ -95,3 +95,3 @@ * Chromium Protocol Command

*/
getNetworkConnection(): number;
getNetworkConnection(): Promise<number>;
/**

@@ -117,3 +117,3 @@ * Chromium Protocol Command

*/
setNetworkConnection(parameters: object): number;
setNetworkConnection(parameters: object): Promise<number>;
/**

@@ -126,3 +126,3 @@ * Chromium Protocol Command

*/
getNetworkConditions(): ProtocolCommandResponse;
getNetworkConditions(): Promise<ProtocolCommandResponse>;
/**

@@ -155,3 +155,3 @@ * Chromium Protocol Command

*/
setNetworkConditions(networkConditions: object, networkName?: string): void;
setNetworkConditions(networkConditions: object, networkName?: string): Promise<void>;
/**

@@ -164,3 +164,3 @@ * Chromium Protocol Command

*/
deleteNetworkConditions(): void;
deleteNetworkConditions(): Promise<void>;
/**

@@ -173,3 +173,3 @@ * Chromium Protocol Command

*/
sendCommand(cmd: string, params: object): void;
sendCommand(cmd: string, params: object): Promise<void>;
/**

@@ -182,3 +182,3 @@ * Chromium Protocol Command

*/
sendCommandAndGetResult(cmd: string, params: object): any;
sendCommandAndGetResult(cmd: string, params: object): Promise<any>;
/**

@@ -191,3 +191,3 @@ * Chromium Protocol Command

*/
file(file: string): string;
file(file: string): Promise<string>;
/**

@@ -217,3 +217,3 @@ * Chromium Protocol Command

*/
launchChromeApp(id: string): void;
launchChromeApp(id: string): Promise<void>;
/**

@@ -226,3 +226,3 @@ * Chromium Protocol Command

*/
getElementValue(elementId: string): string | null;
getElementValue(elementId: string): Promise<string | null>;
/**

@@ -235,3 +235,3 @@ * Chromium Protocol Command

*/
elementHover(elementId: string): void;
elementHover(elementId: string): Promise<void>;
/**

@@ -244,3 +244,3 @@ * Chromium Protocol Command

*/
touchPinch(x: number, y: number, scale: number): void;
touchPinch(x: number, y: number, scale: number): Promise<void>;
/**

@@ -253,3 +253,3 @@ * Chromium Protocol Command

*/
freeze(): void;
freeze(): Promise<void>;
/**

@@ -262,3 +262,3 @@ * Chromium Protocol Command

*/
resume(): void;
resume(): Promise<void>;
/**

@@ -271,3 +271,3 @@ * Chromium Protocol Command

*/
getCastSinks(): string[];
getCastSinks(): Promise<string[]>;
/**

@@ -280,3 +280,3 @@ * Chromium Protocol Command

*/
selectCastSink(sinkName: string): void;
selectCastSink(sinkName: string): Promise<void>;
/**

@@ -289,3 +289,3 @@ * Chromium Protocol Command

*/
startCastTabMirroring(sinkName: string): void;
startCastTabMirroring(sinkName: string): Promise<void>;
/**

@@ -298,3 +298,3 @@ * Chromium Protocol Command

*/
getCastIssueMessage(): string;
getCastIssueMessage(): Promise<string>;
/**

@@ -307,3 +307,3 @@ * Chromium Protocol Command

*/
stopCasting(sinkName: string): void;
stopCasting(sinkName: string): Promise<void>;
/**

@@ -316,3 +316,3 @@ * Chromium Protocol Command

*/
shutdown(): void;
shutdown(): Promise<void>;
/**

@@ -325,3 +325,3 @@ * Chromium Protocol Command

*/
takeElementScreenshot(elementId: string, scroll?: boolean): string;
takeElementScreenshot(elementId: string, scroll?: boolean): Promise<string>;
/**

@@ -334,3 +334,3 @@ * Chromium Protocol Command

*/
getLogTypes(): string[];
getLogTypes(): Promise<string[]>;
/**

@@ -343,4 +343,4 @@ * Chromium Protocol Command

*/
getLogs(type: string): object[];
getLogs(type: string): Promise<object[]>;
}
//# sourceMappingURL=chromium.d.ts.map

@@ -9,3 +9,3 @@ export default interface GeckoCommands {

*/
fullPageScreenshot(): string;
fullPageScreenshot(): Promise<string>;
/**

@@ -22,3 +22,3 @@ * Gecko Protocol Command

*/
getMozContext(): string;
getMozContext(): Promise<string>;
/**

@@ -37,3 +37,3 @@ * Gecko Protocol Command

*/
setMozContext(context: string): void;
setMozContext(context: string): Promise<void>;
/**

@@ -53,3 +53,3 @@ * Gecko Protocol Command

*/
installAddOn(addon: string, temporary: boolean): string;
installAddOn(addon: string, temporary: boolean): Promise<string>;
/**

@@ -71,4 +71,4 @@ * Gecko Protocol Command

*/
uninstallAddOn(id: string): void;
uninstallAddOn(id: string): Promise<void>;
}
//# sourceMappingURL=gecko.d.ts.map

@@ -10,3 +10,3 @@ import type { StatusReturn, SessionReturn, ProtocolCommandResponse, RectReturn, ElementReference, Cookie } from '../types.js';

*/
status(): StatusReturn;
status(): Promise<StatusReturn>;
/**

@@ -19,3 +19,3 @@ * Jsonwp Protocol Command

*/
newSession(desiredCapabilities: object, requiredCapabilities: object): SessionReturn;
newSession(desiredCapabilities: object, requiredCapabilities: object): Promise<SessionReturn>;
/**

@@ -28,3 +28,3 @@ * Jsonwp Protocol Command

*/
getSessions(): object[];
getSessions(): Promise<object[]>;
/**

@@ -37,3 +37,3 @@ * Jsonwp Protocol Command

*/
getSession(): ProtocolCommandResponse;
getSession(): Promise<ProtocolCommandResponse>;
/**

@@ -46,3 +46,3 @@ * Jsonwp Protocol Command

*/
deleteSession(): void;
deleteSession(): Promise<void>;
/**

@@ -55,3 +55,3 @@ * Jsonwp Protocol Command

*/
setTimeouts(type: string, ms: number): void;
setTimeouts(type: string, ms: number): Promise<void>;
/**

@@ -64,3 +64,3 @@ * Jsonwp Protocol Command

*/
setAsyncTimeout(ms: number): void;
setAsyncTimeout(ms: number): Promise<void>;
/**

@@ -73,3 +73,3 @@ * Jsonwp Protocol Command

*/
setImplicitTimeout(ms: number): void;
setImplicitTimeout(ms: number): Promise<void>;
/**

@@ -82,3 +82,3 @@ * Jsonwp Protocol Command

*/
getUrl(): string;
getUrl(): Promise<string>;
/**

@@ -91,3 +91,3 @@ * Jsonwp Protocol Command

*/
navigateTo(url: string): void;
navigateTo(url: string): Promise<void>;
/**

@@ -100,3 +100,3 @@ * Jsonwp Protocol Command

*/
back(): void;
back(): Promise<void>;
/**

@@ -109,3 +109,3 @@ * Jsonwp Protocol Command

*/
forward(): void;
forward(): Promise<void>;
/**

@@ -118,3 +118,3 @@ * Jsonwp Protocol Command

*/
refresh(): void;
refresh(): Promise<void>;
/**

@@ -127,3 +127,3 @@ * Jsonwp Protocol Command

*/
getTitle(): string;
getTitle(): Promise<string>;
/**

@@ -136,3 +136,3 @@ * Jsonwp Protocol Command

*/
getWindowHandle(): string;
getWindowHandle(): Promise<string>;
/**

@@ -145,3 +145,3 @@ * Jsonwp Protocol Command

*/
getWindowHandles(): string[];
getWindowHandles(): Promise<string[]>;
/**

@@ -154,3 +154,3 @@ * Jsonwp Protocol Command

*/
closeWindow(): void;
closeWindow(): Promise<void>;
/**

@@ -163,3 +163,3 @@ * Jsonwp Protocol Command

*/
switchToWindow(name: string): void;
switchToWindow(name: string): Promise<void>;
/**

@@ -172,3 +172,3 @@ * Jsonwp Protocol Command

*/
switchToFrame(id: (string | number | object | null)): void;
switchToFrame(id: (string | number | object | null)): Promise<void>;
/**

@@ -181,3 +181,3 @@ * Jsonwp Protocol Command

*/
switchToParentFrame(): void;
switchToParentFrame(): Promise<void>;
/**

@@ -190,3 +190,3 @@ * Jsonwp Protocol Command

*/
getWindowPosition(): ProtocolCommandResponse;
getWindowPosition(): Promise<ProtocolCommandResponse>;
/**

@@ -199,3 +199,3 @@ * Jsonwp Protocol Command

*/
setWindowPosition(x: number, y: number): ProtocolCommandResponse;
setWindowPosition(x: number, y: number): Promise<ProtocolCommandResponse>;
/**

@@ -208,3 +208,3 @@ * Jsonwp Protocol Command

*/
_getWindowSize(): ProtocolCommandResponse;
_getWindowSize(): Promise<ProtocolCommandResponse>;
/**

@@ -217,3 +217,3 @@ * Jsonwp Protocol Command

*/
_setWindowSize(width: number, height: number): void;
_setWindowSize(width: number, height: number): Promise<void>;
/**

@@ -226,3 +226,3 @@ * Jsonwp Protocol Command

*/
maximizeWindow(): RectReturn;
maximizeWindow(): Promise<RectReturn>;
/**

@@ -235,3 +235,3 @@ * Jsonwp Protocol Command

*/
findElement(using: string, value: string): ElementReference;
findElement(using: string, value: string): Promise<ElementReference>;
/**

@@ -244,3 +244,3 @@ * Jsonwp Protocol Command

*/
findElements(using: string, value: string): ElementReference[];
findElements(using: string, value: string): Promise<ElementReference[]>;
/**

@@ -253,3 +253,3 @@ * Jsonwp Protocol Command

*/
findElementFromElement(elementId: string, using: string, value: string): ElementReference;
findElementFromElement(elementId: string, using: string, value: string): Promise<ElementReference>;
/**

@@ -262,3 +262,3 @@ * Jsonwp Protocol Command

*/
findElementsFromElement(elementId: string, using: string, value: string): ElementReference[];
findElementsFromElement(elementId: string, using: string, value: string): Promise<ElementReference[]>;
/**

@@ -271,3 +271,3 @@ * Jsonwp Protocol Command

*/
getActiveElement(): string;
getActiveElement(): Promise<string>;
/**

@@ -280,3 +280,3 @@ * Jsonwp Protocol Command

*/
isElementSelected(elementId: string): boolean;
isElementSelected(elementId: string): Promise<boolean>;
/**

@@ -289,3 +289,3 @@ * Jsonwp Protocol Command

*/
isElementDisplayed(elementId: string): boolean;
isElementDisplayed(elementId: string): Promise<boolean>;
/**

@@ -298,3 +298,3 @@ * Jsonwp Protocol Command

*/
getElementAttribute(elementId: string, name: string): string | null;
getElementAttribute(elementId: string, name: string): Promise<string | null>;
/**

@@ -307,3 +307,3 @@ * Jsonwp Protocol Command

*/
getElementCSSValue(elementId: string, propertyName: string): string;
getElementCSSValue(elementId: string, propertyName: string): Promise<string>;
/**

@@ -316,3 +316,3 @@ * Jsonwp Protocol Command

*/
getElementText(elementId: string): string;
getElementText(elementId: string): Promise<string>;
/**

@@ -325,3 +325,3 @@ * Jsonwp Protocol Command

*/
getElementTagName(elementId: string): string;
getElementTagName(elementId: string): Promise<string>;
/**

@@ -334,3 +334,3 @@ * Jsonwp Protocol Command

*/
getElementLocation(elementId: string): ProtocolCommandResponse;
getElementLocation(elementId: string): Promise<ProtocolCommandResponse>;
/**

@@ -343,3 +343,3 @@ * Jsonwp Protocol Command

*/
getElementLocationInView(elementId: string): ProtocolCommandResponse;
getElementLocationInView(elementId: string): Promise<ProtocolCommandResponse>;
/**

@@ -352,3 +352,3 @@ * Jsonwp Protocol Command

*/
getElementSize(elementId: string): ProtocolCommandResponse;
getElementSize(elementId: string): Promise<ProtocolCommandResponse>;
/**

@@ -361,3 +361,3 @@ * Jsonwp Protocol Command

*/
isElementEnabled(elementId: string): boolean;
isElementEnabled(elementId: string): Promise<boolean>;
/**

@@ -370,3 +370,3 @@ * Jsonwp Protocol Command

*/
elementClick(elementId: string): void;
elementClick(elementId: string): Promise<void>;
/**

@@ -379,3 +379,3 @@ * Jsonwp Protocol Command

*/
elementEquals(elementId: string, otherElementId: string): boolean;
elementEquals(elementId: string, otherElementId: string): Promise<boolean>;
/**

@@ -388,3 +388,3 @@ * Jsonwp Protocol Command

*/
elementSubmit(elementId: string): void;
elementSubmit(elementId: string): Promise<void>;
/**

@@ -397,3 +397,3 @@ * Jsonwp Protocol Command

*/
elementClear(elementId: string): void;
elementClear(elementId: string): Promise<void>;
/**

@@ -406,3 +406,3 @@ * Jsonwp Protocol Command

*/
elementSendKeys(elementId: string, value: string[]): void;
elementSendKeys(elementId: string, value: string[]): Promise<void>;
/**

@@ -415,3 +415,3 @@ * Jsonwp Protocol Command

*/
sendKeys(value: string[]): void;
sendKeys(value: string[]): Promise<void>;
/**

@@ -424,3 +424,3 @@ * Jsonwp Protocol Command

*/
getPageSource(): string;
getPageSource(): Promise<string>;
/**

@@ -433,3 +433,3 @@ * Jsonwp Protocol Command

*/
executeScript(script: string, args?: (string | object | number | boolean | undefined)[]): any;
executeScript(script: string, args?: (string | object | number | boolean | undefined)[]): Promise<any>;
/**

@@ -442,3 +442,3 @@ * Jsonwp Protocol Command

*/
executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): any;
executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
/**

@@ -451,3 +451,3 @@ * Jsonwp Protocol Command

*/
getAllCookies(): Cookie[];
getAllCookies(): Promise<Cookie[]>;
/**

@@ -460,3 +460,3 @@ * Jsonwp Protocol Command

*/
addCookie(cookie: object): void;
addCookie(cookie: object): Promise<void>;
/**

@@ -469,3 +469,3 @@ * Jsonwp Protocol Command

*/
deleteAllCookies(): void;
deleteAllCookies(): Promise<void>;
/**

@@ -478,3 +478,3 @@ * Jsonwp Protocol Command

*/
deleteCookie(name: string): void;
deleteCookie(name: string): Promise<void>;
/**

@@ -487,3 +487,3 @@ * Jsonwp Protocol Command

*/
dismissAlert(): void;
dismissAlert(): Promise<void>;
/**

@@ -496,3 +496,3 @@ * Jsonwp Protocol Command

*/
acceptAlert(): void;
acceptAlert(): Promise<void>;
/**

@@ -505,3 +505,3 @@ * Jsonwp Protocol Command

*/
getAlertText(): string;
getAlertText(): Promise<string>;
/**

@@ -514,3 +514,3 @@ * Jsonwp Protocol Command

*/
sendAlertText(text: string): void;
sendAlertText(text: string): Promise<void>;
/**

@@ -523,3 +523,3 @@ * Jsonwp Protocol Command

*/
takeScreenshot(): string;
takeScreenshot(): Promise<string>;
/**

@@ -532,3 +532,3 @@ * Jsonwp Protocol Command

*/
getAvailableEngines(): string[];
getAvailableEngines(): Promise<string[]>;
/**

@@ -541,3 +541,3 @@ * Jsonwp Protocol Command

*/
getActiveEngine(): string;
getActiveEngine(): Promise<string>;
/**

@@ -550,3 +550,3 @@ * Jsonwp Protocol Command

*/
isIMEActivated(): boolean;
isIMEActivated(): Promise<boolean>;
/**

@@ -559,3 +559,3 @@ * Jsonwp Protocol Command

*/
deactivateIME(): void;
deactivateIME(): Promise<void>;
/**

@@ -568,3 +568,3 @@ * Jsonwp Protocol Command

*/
activateIME(engine: string): void;
activateIME(engine: string): Promise<void>;
/**

@@ -577,3 +577,3 @@ * Jsonwp Protocol Command

*/
getOrientation(): string;
getOrientation(): Promise<string>;
/**

@@ -586,3 +586,3 @@ * Jsonwp Protocol Command

*/
setOrientation(orientation: string): void;
setOrientation(orientation: string): Promise<void>;
/**

@@ -595,3 +595,3 @@ * Jsonwp Protocol Command

*/
moveToElement(element?: (string | null), xoffset?: number, yoffset?: number): void;
moveToElement(element?: (string | null), xoffset?: number, yoffset?: number): Promise<void>;
/**

@@ -604,3 +604,3 @@ * Jsonwp Protocol Command

*/
buttonDown(button?: number): void;
buttonDown(button?: number): Promise<void>;
/**

@@ -613,3 +613,3 @@ * Jsonwp Protocol Command

*/
buttonUp(button?: number): void;
buttonUp(button?: number): Promise<void>;
/**

@@ -622,3 +622,3 @@ * Jsonwp Protocol Command

*/
positionClick(button?: number): void;
positionClick(button?: number): Promise<void>;
/**

@@ -631,3 +631,3 @@ * Jsonwp Protocol Command

*/
positionDoubleClick(): void;
positionDoubleClick(): Promise<void>;
/**

@@ -640,3 +640,3 @@ * Jsonwp Protocol Command

*/
touchClick(element: string): void;
touchClick(element: string): Promise<void>;
/**

@@ -649,3 +649,3 @@ * Jsonwp Protocol Command

*/
touchDown(x: number, y: number): void;
touchDown(x: number, y: number): Promise<void>;
/**

@@ -658,3 +658,3 @@ * Jsonwp Protocol Command

*/
touchUp(x: number, y: number): void;
touchUp(x: number, y: number): Promise<void>;
/**

@@ -667,3 +667,3 @@ * Jsonwp Protocol Command

*/
touchMove(x: number, y: number): void;
touchMove(x: number, y: number): Promise<void>;
/**

@@ -676,3 +676,3 @@ * Jsonwp Protocol Command

*/
touchScroll(xoffset: number, yoffset: number, element?: string): void;
touchScroll(xoffset: number, yoffset: number, element?: string): Promise<void>;
/**

@@ -685,3 +685,3 @@ * Jsonwp Protocol Command

*/
touchDoubleClick(element: string): void;
touchDoubleClick(element: string): Promise<void>;
/**

@@ -694,3 +694,3 @@ * Jsonwp Protocol Command

*/
touchLongClick(element: string): void;
touchLongClick(element: string): Promise<void>;
/**

@@ -703,3 +703,3 @@ * Jsonwp Protocol Command

*/
touchFlick(xoffset?: number, yoffset?: number, element?: string, speed?: number, xspeed?: number, yspeed?: number): void;
touchFlick(xoffset?: number, yoffset?: number, element?: string, speed?: number, xspeed?: number, yspeed?: number): Promise<void>;
/**

@@ -712,3 +712,3 @@ * Jsonwp Protocol Command

*/
getGeoLocation(): ProtocolCommandResponse;
getGeoLocation(): Promise<ProtocolCommandResponse>;
/**

@@ -721,3 +721,3 @@ * Jsonwp Protocol Command

*/
setGeoLocation(location: object): void;
setGeoLocation(location: object): Promise<void>;
/**

@@ -730,3 +730,3 @@ * Jsonwp Protocol Command

*/
getLocalStorage(): string[];
getLocalStorage(): Promise<string[]>;
/**

@@ -739,3 +739,3 @@ * Jsonwp Protocol Command

*/
setLocalStorage(key: string, value: string): void;
setLocalStorage(key: string, value: string): Promise<void>;
/**

@@ -748,3 +748,3 @@ * Jsonwp Protocol Command

*/
clearLocalStorage(): void;
clearLocalStorage(): Promise<void>;
/**

@@ -757,3 +757,3 @@ * Jsonwp Protocol Command

*/
getLocalStorageItem(key: string): string;
getLocalStorageItem(key: string): Promise<string>;
/**

@@ -766,3 +766,3 @@ * Jsonwp Protocol Command

*/
deleteLocalStorageItem(key: string): void;
deleteLocalStorageItem(key: string): Promise<void>;
/**

@@ -775,3 +775,3 @@ * Jsonwp Protocol Command

*/
getLocalStorageSize(): number;
getLocalStorageSize(): Promise<number>;
/**

@@ -784,3 +784,3 @@ * Jsonwp Protocol Command

*/
getSessionStorage(): string[];
getSessionStorage(): Promise<string[]>;
/**

@@ -793,3 +793,3 @@ * Jsonwp Protocol Command

*/
setSessionStorage(key: string, value: string): void;
setSessionStorage(key: string, value: string): Promise<void>;
/**

@@ -802,3 +802,3 @@ * Jsonwp Protocol Command

*/
clearSessionStorage(): void;
clearSessionStorage(): Promise<void>;
/**

@@ -811,3 +811,3 @@ * Jsonwp Protocol Command

*/
getSessionStorageItem(key: string): string;
getSessionStorageItem(key: string): Promise<string>;
/**

@@ -820,3 +820,3 @@ * Jsonwp Protocol Command

*/
deleteSessionStorageItem(key: string): void;
deleteSessionStorageItem(key: string): Promise<void>;
/**

@@ -829,3 +829,3 @@ * Jsonwp Protocol Command

*/
getSessionStorageSize(): number;
getSessionStorageSize(): Promise<number>;
/**

@@ -838,3 +838,3 @@ * Jsonwp Protocol Command

*/
getLogs(type: string): object[];
getLogs(type: string): Promise<object[]>;
/**

@@ -847,3 +847,3 @@ * Jsonwp Protocol Command

*/
getLogTypes(): string[];
getLogTypes(): Promise<string[]>;
/**

@@ -856,4 +856,4 @@ * Jsonwp Protocol Command

*/
getApplicationCacheStatus(): number;
getApplicationCacheStatus(): Promise<number>;
}
//# sourceMappingURL=jsonwp.d.ts.map

@@ -10,3 +10,3 @@ import type { Context } from '../types.js';

*/
getContext(): Context;
getContext(): Promise<Context>;
/**

@@ -19,3 +19,3 @@ * Mjsonwp Protocol Command

*/
switchContext(name: string): void;
switchContext(name: string): Promise<void>;
/**

@@ -28,3 +28,3 @@ * Mjsonwp Protocol Command

*/
getContexts(): Context[];
getContexts(): Promise<Context[]>;
/**

@@ -37,3 +37,3 @@ * Mjsonwp Protocol Command

*/
getPageIndex(): string;
getPageIndex(): Promise<string>;
/**

@@ -46,3 +46,3 @@ * Mjsonwp Protocol Command

*/
getNetworkConnection(): number;
getNetworkConnection(): Promise<number>;
/**

@@ -55,3 +55,3 @@ * Mjsonwp Protocol Command

*/
setNetworkConnection(type: number): void;
setNetworkConnection(type: number): Promise<void>;
/**

@@ -64,3 +64,3 @@ * Mjsonwp Protocol Command

*/
touchPerform(actions: object[]): void;
touchPerform(actions: object[]): Promise<void>;
/**

@@ -73,3 +73,3 @@ * Mjsonwp Protocol Command

*/
multiTouchPerform(actions: object[], elementId: object[]): void;
multiTouchPerform(actions: object[], elementId: object[]): Promise<void>;
/**

@@ -82,4 +82,4 @@ * Mjsonwp Protocol Command

*/
receiveAsyncResponse(status: string, value: string): void;
receiveAsyncResponse(status: string, value: string): Promise<void>;
}
//# sourceMappingURL=mjsonwp.d.ts.map

@@ -48,3 +48,3 @@ import type { ProtocolCommandResponse } from '../types.js';

*/
getPageLogs(type: string): ProtocolCommandResponse;
getPageLogs(type: string): Promise<ProtocolCommandResponse>;
/**

@@ -71,3 +71,3 @@ * Saucelabs Protocol Command

*/
throttleNetwork(condition: (string | object)): void;
throttleNetwork(condition: (string | object)): Promise<void>;
/**

@@ -90,3 +90,3 @@ * Saucelabs Protocol Command

*/
throttleCPU(rate: number): void;
throttleCPU(rate: number): Promise<void>;
/**

@@ -133,3 +133,3 @@ * Saucelabs Protocol Command

*/
interceptRequest(rule: object): void;
interceptRequest(rule: object): Promise<void>;
/**

@@ -151,3 +151,3 @@ * Saucelabs Protocol Command

*/
assertPerformance(name: string, metrics?: string[]): ProtocolCommandResponse;
assertPerformance(name: string, metrics?: string[]): Promise<ProtocolCommandResponse>;
/**

@@ -166,3 +166,3 @@ * Saucelabs Protocol Command

*/
jankinessCheck(): ProtocolCommandResponse;
jankinessCheck(): Promise<ProtocolCommandResponse>;
/**

@@ -175,3 +175,3 @@ * Saucelabs Protocol Command

*/
mockRequest(url: string, filterOptions?: object): ProtocolCommandResponse;
mockRequest(url: string, filterOptions?: object): Promise<ProtocolCommandResponse>;
/**

@@ -184,3 +184,3 @@ * Saucelabs Protocol Command

*/
getMockCalls(mockId: string): ProtocolCommandResponse;
getMockCalls(mockId: string): Promise<ProtocolCommandResponse>;
/**

@@ -193,3 +193,3 @@ * Saucelabs Protocol Command

*/
clearMockCalls(mockId: string, restore?: boolean): void;
clearMockCalls(mockId: string, restore?: boolean): Promise<void>;
/**

@@ -202,4 +202,4 @@ * Saucelabs Protocol Command

*/
respondMock(mockId: string, payload: object): void;
respondMock(mockId: string, payload: object): Promise<void>;
}
//# sourceMappingURL=saucelabs.d.ts.map

@@ -10,3 +10,3 @@ import type { ProtocolCommandResponse } from '../types.js';

*/
file(file: string): string;
file(file: string): Promise<string>;
/**

@@ -19,3 +19,3 @@ * Selenium Protocol Command

*/
getHubConfig(): ProtocolCommandResponse;
getHubConfig(): Promise<ProtocolCommandResponse>;
/**

@@ -28,3 +28,3 @@ * Selenium Protocol Command

*/
gridTestSession(session: string): ProtocolCommandResponse;
gridTestSession(session: string): Promise<ProtocolCommandResponse>;
/**

@@ -37,3 +37,3 @@ * Selenium Protocol Command

*/
gridProxyDetails(id: string): ProtocolCommandResponse;
gridProxyDetails(id: string): Promise<ProtocolCommandResponse>;
/**

@@ -46,3 +46,3 @@ * Selenium Protocol Command

*/
manageSeleniumHubLifecycle(action: string): void;
manageSeleniumHubLifecycle(action: string): Promise<void>;
/**

@@ -73,4 +73,4 @@ * Selenium Protocol Command

*/
queryGrid(query: string): ProtocolCommandResponse;
queryGrid(query: string): Promise<ProtocolCommandResponse>;
}
//# sourceMappingURL=selenium.d.ts.map

@@ -10,3 +10,3 @@ import type { SessionReturn, StatusReturn, Timeouts, WindowHandle, RectReturn, ElementReference, ProtocolCommandResponse, Cookie } from '../types.js';

*/
newSession(capabilities: object): SessionReturn;
newSession(capabilities: object): Promise<SessionReturn>;
/**

@@ -19,3 +19,3 @@ * Webdriver Protocol Command

*/
deleteSession(): void;
deleteSession(): Promise<void>;
/**

@@ -28,3 +28,3 @@ * Webdriver Protocol Command

*/
status(): StatusReturn;
status(): Promise<StatusReturn>;
/**

@@ -37,3 +37,3 @@ * Webdriver Protocol Command

*/
getTimeouts(): Timeouts;
getTimeouts(): Promise<Timeouts>;
/**

@@ -46,3 +46,3 @@ * Webdriver Protocol Command

*/
setTimeouts(implicit?: number, pageLoad?: number, script?: number): void;
setTimeouts(implicit?: number, pageLoad?: number, script?: number): Promise<void>;
/**

@@ -55,3 +55,3 @@ * Webdriver Protocol Command

*/
getUrl(): string;
getUrl(): Promise<string>;
/**

@@ -64,3 +64,3 @@ * Webdriver Protocol Command

*/
navigateTo(url: string): string;
navigateTo(url: string): Promise<string>;
/**

@@ -73,3 +73,3 @@ * Webdriver Protocol Command

*/
back(): void;
back(): Promise<void>;
/**

@@ -82,3 +82,3 @@ * Webdriver Protocol Command

*/
forward(): void;
forward(): Promise<void>;
/**

@@ -91,3 +91,3 @@ * Webdriver Protocol Command

*/
refresh(): void;
refresh(): Promise<void>;
/**

@@ -100,3 +100,3 @@ * Webdriver Protocol Command

*/
getTitle(): string;
getTitle(): Promise<string>;
/**

@@ -109,3 +109,3 @@ * Webdriver Protocol Command

*/
getWindowHandle(): string;
getWindowHandle(): Promise<string>;
/**

@@ -118,3 +118,3 @@ * Webdriver Protocol Command

*/
closeWindow(): void;
closeWindow(): Promise<void>;
/**

@@ -127,3 +127,3 @@ * Webdriver Protocol Command

*/
switchToWindow(handle: string): void;
switchToWindow(handle: string): Promise<void>;
/**

@@ -136,3 +136,3 @@ * Webdriver Protocol Command

*/
createWindow(type: 'tab' | 'window'): WindowHandle;
createWindow(type: 'tab' | 'window'): Promise<WindowHandle>;
/**

@@ -145,3 +145,3 @@ * Webdriver Protocol Command

*/
getWindowHandles(): string[];
getWindowHandles(): Promise<string[]>;
/**

@@ -154,3 +154,3 @@ * Webdriver Protocol Command

*/
printPage(orientation?: string, scale?: number, background?: boolean, width?: number, height?: number, top?: number, bottom?: number, left?: number, right?: number, shrinkToFit?: boolean, pageRanges?: object[]): string;
printPage(orientation?: string, scale?: number, background?: boolean, width?: number, height?: number, top?: number, bottom?: number, left?: number, right?: number, shrinkToFit?: boolean, pageRanges?: object[]): Promise<string>;
/**

@@ -163,3 +163,3 @@ * Webdriver Protocol Command

*/
switchToFrame(id: (number | object | null)): void;
switchToFrame(id: (number | object | null)): Promise<void>;
/**

@@ -172,3 +172,3 @@ * Webdriver Protocol Command

*/
switchToParentFrame(): void;
switchToParentFrame(): Promise<void>;
/**

@@ -181,3 +181,3 @@ * Webdriver Protocol Command

*/
getWindowRect(): RectReturn;
getWindowRect(): Promise<RectReturn>;
/**

@@ -190,3 +190,3 @@ * Webdriver Protocol Command

*/
setWindowRect(x: (number | null), y: (number | null), width: (number | null), height: (number | null)): RectReturn;
setWindowRect(x: (number | null), y: (number | null), width: (number | null), height: (number | null)): Promise<RectReturn>;
/**

@@ -199,3 +199,3 @@ * Webdriver Protocol Command

*/
maximizeWindow(): RectReturn;
maximizeWindow(): Promise<RectReturn>;
/**

@@ -208,3 +208,3 @@ * Webdriver Protocol Command

*/
minimizeWindow(): RectReturn;
minimizeWindow(): Promise<RectReturn>;
/**

@@ -217,3 +217,3 @@ * Webdriver Protocol Command

*/
fullscreenWindow(): RectReturn;
fullscreenWindow(): Promise<RectReturn>;
/**

@@ -233,3 +233,3 @@ * Webdriver Protocol Command

*/
findElement(using: string, value: string): ElementReference;
findElement(using: string, value: string): Promise<ElementReference>;
/**

@@ -256,3 +256,3 @@ * Webdriver Protocol Command

*/
findElementFromShadowRoot(shadowId: string, using: string, value: string): ProtocolCommandResponse;
findElementFromShadowRoot(shadowId: string, using: string, value: string): Promise<ProtocolCommandResponse>;
/**

@@ -265,3 +265,3 @@ * Webdriver Protocol Command

*/
findElements(using: string, value: string): ElementReference[];
findElements(using: string, value: string): Promise<ElementReference[]>;
/**

@@ -288,3 +288,3 @@ * Webdriver Protocol Command

*/
findElementsFromShadowRoot(shadowId: string, using: string, value: string): object[];
findElementsFromShadowRoot(shadowId: string, using: string, value: string): Promise<object[]>;
/**

@@ -297,3 +297,3 @@ * Webdriver Protocol Command

*/
findElementFromElement(elementId: string, using: string, value: string): ElementReference;
findElementFromElement(elementId: string, using: string, value: string): Promise<ElementReference>;
/**

@@ -306,3 +306,3 @@ * Webdriver Protocol Command

*/
findElementsFromElement(elementId: string, using: string, value: string): ElementReference[];
findElementsFromElement(elementId: string, using: string, value: string): Promise<ElementReference[]>;
/**

@@ -315,3 +315,3 @@ * Webdriver Protocol Command

*/
getElementShadowRoot(elementId: string): string;
getElementShadowRoot(elementId: string): Promise<string>;
/**

@@ -324,3 +324,3 @@ * Webdriver Protocol Command

*/
getActiveElement(): string;
getActiveElement(): Promise<string>;
/**

@@ -333,3 +333,3 @@ * Webdriver Protocol Command

*/
isElementSelected(elementId: string): boolean;
isElementSelected(elementId: string): Promise<boolean>;
/**

@@ -342,3 +342,3 @@ * Webdriver Protocol Command

*/
isElementDisplayed(elementId: string): boolean;
isElementDisplayed(elementId: string): Promise<boolean>;
/**

@@ -351,3 +351,3 @@ * Webdriver Protocol Command

*/
getElementAttribute(elementId: string, name: string): string;
getElementAttribute(elementId: string, name: string): Promise<string>;
/**

@@ -360,3 +360,3 @@ * Webdriver Protocol Command

*/
getElementProperty(elementId: string, name: string): string;
getElementProperty(elementId: string, name: string): Promise<string>;
/**

@@ -369,3 +369,3 @@ * Webdriver Protocol Command

*/
getElementCSSValue(elementId: string, propertyName: string): string;
getElementCSSValue(elementId: string, propertyName: string): Promise<string>;
/**

@@ -378,3 +378,3 @@ * Webdriver Protocol Command

*/
getElementText(elementId: string): string;
getElementText(elementId: string): Promise<string>;
/**

@@ -387,3 +387,3 @@ * Webdriver Protocol Command

*/
getElementTagName(elementId: string): string;
getElementTagName(elementId: string): Promise<string>;
/**

@@ -396,3 +396,3 @@ * Webdriver Protocol Command

*/
getElementRect(elementId: string): RectReturn;
getElementRect(elementId: string): Promise<RectReturn>;
/**

@@ -405,3 +405,3 @@ * Webdriver Protocol Command

*/
isElementEnabled(elementId: string): boolean;
isElementEnabled(elementId: string): Promise<boolean>;
/**

@@ -414,3 +414,3 @@ * Webdriver Protocol Command

*/
elementClick(elementId: string): void;
elementClick(elementId: string): Promise<void>;
/**

@@ -423,3 +423,3 @@ * Webdriver Protocol Command

*/
elementClear(elementId: string): void;
elementClear(elementId: string): Promise<void>;
/**

@@ -432,3 +432,3 @@ * Webdriver Protocol Command

*/
elementSendKeys(elementId: string, text: string): void;
elementSendKeys(elementId: string, text: string): Promise<void>;
/**

@@ -441,3 +441,3 @@ * Webdriver Protocol Command

*/
getPageSource(): string;
getPageSource(): Promise<string>;
/**

@@ -450,3 +450,3 @@ * Webdriver Protocol Command

*/
executeScript(script: string, args: (string | object | number | boolean | undefined)[]): any;
executeScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
/**

@@ -459,3 +459,3 @@ * Webdriver Protocol Command

*/
executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): any;
executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
/**

@@ -468,3 +468,3 @@ * Webdriver Protocol Command

*/
getAllCookies(): Cookie[];
getAllCookies(): Promise<Cookie[]>;
/**

@@ -477,3 +477,3 @@ * Webdriver Protocol Command

*/
addCookie(cookie: object): void;
addCookie(cookie: object): Promise<void>;
/**

@@ -486,3 +486,3 @@ * Webdriver Protocol Command

*/
deleteAllCookies(): void;
deleteAllCookies(): Promise<void>;
/**

@@ -495,3 +495,3 @@ * Webdriver Protocol Command

*/
getNamedCookie(name: string): Cookie;
getNamedCookie(name: string): Promise<Cookie>;
/**

@@ -504,3 +504,3 @@ * Webdriver Protocol Command

*/
deleteCookie(name: string): void;
deleteCookie(name: string): Promise<void>;
/**

@@ -513,3 +513,3 @@ * Webdriver Protocol Command

*/
performActions(actions: object[]): void;
performActions(actions: object[]): Promise<void>;
/**

@@ -522,3 +522,3 @@ * Webdriver Protocol Command

*/
releaseActions(): void;
releaseActions(): Promise<void>;
/**

@@ -531,3 +531,3 @@ * Webdriver Protocol Command

*/
dismissAlert(): void;
dismissAlert(): Promise<void>;
/**

@@ -540,3 +540,3 @@ * Webdriver Protocol Command

*/
acceptAlert(): void;
acceptAlert(): Promise<void>;
/**

@@ -549,3 +549,3 @@ * Webdriver Protocol Command

*/
getAlertText(): string;
getAlertText(): Promise<string>;
/**

@@ -558,3 +558,3 @@ * Webdriver Protocol Command

*/
sendAlertText(text: string): void;
sendAlertText(text: string): Promise<void>;
/**

@@ -567,3 +567,3 @@ * Webdriver Protocol Command

*/
takeScreenshot(): string;
takeScreenshot(): Promise<string>;
/**

@@ -576,3 +576,3 @@ * Webdriver Protocol Command

*/
takeElementScreenshot(elementId: string, scroll?: boolean): string;
takeElementScreenshot(elementId: string, scroll?: boolean): Promise<string>;
/**

@@ -585,3 +585,3 @@ * Webdriver Protocol Command

*/
getElementComputedRole(elementId: string): string;
getElementComputedRole(elementId: string): Promise<string>;
/**

@@ -594,3 +594,3 @@ * Webdriver Protocol Command

*/
getElementComputedLabel(elementId: string): string;
getElementComputedLabel(elementId: string): Promise<string>;
/**

@@ -611,3 +611,3 @@ * Webdriver Protocol Command

*/
setPermissions(descriptor: object, state: string, oneRealm?: boolean): void;
setPermissions(descriptor: object, state: string, oneRealm?: boolean): Promise<void>;
/**

@@ -620,3 +620,3 @@ * Webdriver Protocol Command

*/
generateTestReport(message: string, group: string): void;
generateTestReport(message: string, group: string): Promise<void>;
/**

@@ -629,3 +629,3 @@ * Webdriver Protocol Command

*/
createMockSensor(mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): void;
createMockSensor(mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): Promise<void>;
/**

@@ -638,3 +638,3 @@ * Webdriver Protocol Command

*/
getMockSensor(type: string): ProtocolCommandResponse;
getMockSensor(type: string): Promise<ProtocolCommandResponse>;
/**

@@ -647,3 +647,3 @@ * Webdriver Protocol Command

*/
updateMockSensor(type: string, mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): void;
updateMockSensor(type: string, mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): Promise<void>;
/**

@@ -656,3 +656,3 @@ * Webdriver Protocol Command

*/
deleteMockSensor(type: string): void;
deleteMockSensor(type: string): Promise<void>;
/**

@@ -665,3 +665,3 @@ * Webdriver Protocol Command

*/
setTimeZone(timeZone: string): void;
setTimeZone(timeZone: string): Promise<void>;
/**

@@ -674,3 +674,3 @@ * Webdriver Protocol Command

*/
addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: string[], uvm?: object[]): void;
addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: string[], uvm?: object[]): Promise<void>;
/**

@@ -683,3 +683,3 @@ * Webdriver Protocol Command

*/
removeVirtualAuthenticator(authenticatorId: string): void;
removeVirtualAuthenticator(authenticatorId: string): Promise<void>;
/**

@@ -692,3 +692,3 @@ * Webdriver Protocol Command

*/
addCredential(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob: string): void;
addCredential(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob: string): Promise<void>;
/**

@@ -701,3 +701,3 @@ * Webdriver Protocol Command

*/
getCredentials(authenticatorId: string): void;
getCredentials(authenticatorId: string): Promise<void>;
/**

@@ -710,3 +710,3 @@ * Webdriver Protocol Command

*/
removeAllCredentials(authenticatorId: string): void;
removeAllCredentials(authenticatorId: string): Promise<void>;
/**

@@ -719,3 +719,3 @@ * Webdriver Protocol Command

*/
removeCredential(authenticatorId: string, credentialId: string): void;
removeCredential(authenticatorId: string, credentialId: string): Promise<void>;
/**

@@ -728,4 +728,4 @@ * Webdriver Protocol Command

*/
setUserVerified(authenticatorId: string, credentialId: string): void;
setUserVerified(authenticatorId: string, credentialId: string): Promise<void>;
}
//# sourceMappingURL=webdriver.d.ts.map

@@ -10,3 +10,3 @@ import type { BidiResponse } from '../types.js';

*/
send(params: object): BidiResponse;
send(params: object): Promise<BidiResponse>;
/**

@@ -19,4 +19,4 @@ * WebdriverBidi Protocol Command

*/
sendAsync(params: object): void;
sendAsync(params: object): Promise<void>;
}
//# sourceMappingURL=webdriverBidi.d.ts.map

@@ -19,36 +19,7 @@ import type AppiumCommands from './commands/appium.js';

import SeleniumProtocol from './protocols/selenium.js';
type WebDriverCommandsAsync = {
[K in keyof WebDriverCommands]: (...args: Parameters<WebDriverCommands[K]>) => Promise<ReturnType<WebDriverCommands[K]>>;
};
type WebDriverBidiCommandsAsync = {
[K in keyof WebDriverBidiCommands]: (...args: Parameters<WebDriverBidiCommands[K]>) => Promise<ReturnType<WebDriverBidiCommands[K]>>;
};
type AppiumCommandsAsync = {
[K in keyof AppiumCommands]: (...args: Parameters<AppiumCommands[K]>) => Promise<ReturnType<AppiumCommands[K]>>;
};
type ChromiumCommandsAsync = {
[K in keyof ChromiumCommands]: (...args: Parameters<ChromiumCommands[K]>) => Promise<ReturnType<ChromiumCommands[K]>>;
};
type GeckoCommandsAsync = {
[K in keyof GeckoCommands]: (...args: Parameters<GeckoCommands[K]>) => Promise<ReturnType<GeckoCommands[K]>>;
};
type JSONWPCommandsAsync = {
[K in keyof JSONWPCommands]: (...args: Parameters<JSONWPCommands[K]>) => Promise<ReturnType<JSONWPCommands[K]>>;
};
type MJSONWPCommandsAsync = {
[K in keyof MJSONWPCommands]: (...args: Parameters<MJSONWPCommands[K]>) => Promise<ReturnType<MJSONWPCommands[K]>>;
};
type SauceLabsCommandsAsync = {
[K in keyof SauceLabsCommands]: (...args: Parameters<SauceLabsCommands[K]>) => Promise<ReturnType<SauceLabsCommands[K]>>;
};
type SeleniumCommandsAsync = {
[K in keyof SeleniumCommands]: (...args: Parameters<SeleniumCommands[K]>) => Promise<ReturnType<SeleniumCommands[K]>>;
};
export interface ProtocolCommands extends WebDriverCommands, Omit<JSONWPCommands, keyof WebDriverCommands>, AppiumCommands, ChromiumCommands, Omit<MJSONWPCommands, keyof AppiumCommands | keyof ChromiumCommands>, SauceLabsCommands, SeleniumCommands {
}
export interface ProtocolCommandsAsync extends WebDriverCommandsAsync, Omit<JSONWPCommandsAsync, keyof WebDriverCommandsAsync>, AppiumCommandsAsync, ChromiumCommandsAsync, Omit<MJSONWPCommandsAsync, keyof AppiumCommandsAsync | keyof ChromiumCommandsAsync>, SauceLabsCommandsAsync, SeleniumCommandsAsync {
}
export * from './types.js';
export { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol, AppiumCommands, ChromiumCommands, JSONWPCommands, MJSONWPCommands, SauceLabsCommands, SeleniumCommands, WebDriverCommands, GeckoCommands, WebDriverBidiCommands, WebDriverCommandsAsync, AppiumCommandsAsync, ChromiumCommandsAsync, JSONWPCommandsAsync, MJSONWPCommandsAsync, SauceLabsCommandsAsync, SeleniumCommandsAsync, GeckoCommandsAsync, WebDriverBidiCommandsAsync };
export { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol, AppiumCommands, ChromiumCommands, JSONWPCommands, MJSONWPCommands, SauceLabsCommands, SeleniumCommands, WebDriverCommands, GeckoCommands, WebDriverBidiCommands };
export declare const CAPABILITY_KEYS: string[];
//# sourceMappingURL=index.d.ts.map
{
"name": "@wdio/protocols",
"version": "8.1.0",
"version": "8.2.0",
"description": "Utility package providing information about automation protocols",

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

},
"gitHead": "f505134606f99129c816acb00f22e39032e60820"
"gitHead": "3620e90e47b6d3e62832f5de24f43cee6b31e972"
}

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

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

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

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