Socket
Socket
Sign inDemoInstall

webdriver

Package Overview
Dependencies
Maintainers
3
Versions
476
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdriver - npm Package Compare versions

Comparing version 9.0.0-alpha.78 to 9.0.0-alpha.113

49

build/bidi/handler.d.ts

@@ -62,2 +62,23 @@ /**

/**
* WebDriver Bidi command to send command method "browser.createUserContext" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext
* @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext | command parameter}
* @returns `Promise<local.BrowserCreateUserContextResult>`
**/
browserCreateUserContext(params: remote.EmptyParams): Promise<local.BrowserCreateUserContextResult>;
/**
* WebDriver Bidi command to send command method "browser.getUserContexts" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts
* @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts | command parameter}
* @returns `Promise<local.BrowserGetUserContextsResult>`
**/
browserGetUserContexts(params: remote.EmptyParams): Promise<local.BrowserGetUserContextsResult>;
/**
* WebDriver Bidi command to send command method "browser.removeUserContext" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext
* @param params `remote.BrowserRemoveUserContextParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext | command parameter}
* @returns `Promise<local.EmptyResult>`
**/
browserRemoveUserContext(params: remote.BrowserRemoveUserContextParameters): Promise<local.EmptyResult>;
/**
* WebDriver Bidi command to send command method "browsingContext.activate" with parameters.

@@ -238,2 +259,23 @@ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate

/**
* WebDriver Bidi command to send command method "storage.getCookies" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-storage-getCookies
* @param params `remote.StorageGetCookiesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-getCookies | command parameter}
* @returns `Promise<local.StorageGetCookiesResult>`
**/
storageGetCookies(params: remote.StorageGetCookiesParameters): Promise<local.StorageGetCookiesResult>;
/**
* WebDriver Bidi command to send command method "storage.setCookie" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-storage-setCookie
* @param params `remote.StorageSetCookieParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-setCookie | command parameter}
* @returns `Promise<local.StorageSetCookieResult>`
**/
storageSetCookie(params: remote.StorageSetCookieParameters): Promise<local.StorageSetCookieResult>;
/**
* WebDriver Bidi command to send command method "storage.deleteCookies" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies
* @param params `remote.StorageDeleteCookiesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies | command parameter}
* @returns `Promise<local.StorageDeleteCookiesResult>`
**/
storageDeleteCookies(params: remote.StorageDeleteCookiesParameters): Promise<local.StorageDeleteCookiesResult>;
/**
* WebDriver Bidi command to send command method "input.performActions" with parameters.

@@ -252,3 +294,10 @@ * @url https://w3c.github.io/webdriver-bidi/#command-input-performActions

inputReleaseActions(params: remote.InputReleaseActionsParameters): Promise<local.EmptyResult>;
/**
* WebDriver Bidi command to send command method "input.setFiles" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-input-setFiles
* @param params `remote.InputSetFilesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-setFiles | command parameter}
* @returns `Promise<local.EmptyResult>`
**/
inputSetFiles(params: remote.InputSetFilesParameters): Promise<local.EmptyResult>;
}
//# sourceMappingURL=handler.d.ts.map

@@ -96,2 +96,41 @@ /**

/**
* WebDriver Bidi command to send command method "browser.createUserContext" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext
* @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext | command parameter}
* @returns `Promise<local.BrowserCreateUserContextResult>`
**/
async browserCreateUserContext(params) {
const result = await this.send({
method: 'browser.createUserContext',
params
});
return result.result;
}
/**
* WebDriver Bidi command to send command method "browser.getUserContexts" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts
* @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts | command parameter}
* @returns `Promise<local.BrowserGetUserContextsResult>`
**/
async browserGetUserContexts(params) {
const result = await this.send({
method: 'browser.getUserContexts',
params
});
return result.result;
}
/**
* WebDriver Bidi command to send command method "browser.removeUserContext" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext
* @param params `remote.BrowserRemoveUserContextParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext | command parameter}
* @returns `Promise<local.EmptyResult>`
**/
async browserRemoveUserContext(params) {
const result = await this.send({
method: 'browser.removeUserContext',
params
});
return result.result;
}
/**
* WebDriver Bidi command to send command method "browsingContext.activate" with parameters.

@@ -422,2 +461,41 @@ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate

/**
* WebDriver Bidi command to send command method "storage.getCookies" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-storage-getCookies
* @param params `remote.StorageGetCookiesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-getCookies | command parameter}
* @returns `Promise<local.StorageGetCookiesResult>`
**/
async storageGetCookies(params) {
const result = await this.send({
method: 'storage.getCookies',
params
});
return result.result;
}
/**
* WebDriver Bidi command to send command method "storage.setCookie" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-storage-setCookie
* @param params `remote.StorageSetCookieParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-setCookie | command parameter}
* @returns `Promise<local.StorageSetCookieResult>`
**/
async storageSetCookie(params) {
const result = await this.send({
method: 'storage.setCookie',
params
});
return result.result;
}
/**
* WebDriver Bidi command to send command method "storage.deleteCookies" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies
* @param params `remote.StorageDeleteCookiesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies | command parameter}
* @returns `Promise<local.StorageDeleteCookiesResult>`
**/
async storageDeleteCookies(params) {
const result = await this.send({
method: 'storage.deleteCookies',
params
});
return result.result;
}
/**
* WebDriver Bidi command to send command method "input.performActions" with parameters.

@@ -448,2 +526,15 @@ * @url https://w3c.github.io/webdriver-bidi/#command-input-performActions

}
/**
* WebDriver Bidi command to send command method "input.setFiles" with parameters.
* @url https://w3c.github.io/webdriver-bidi/#command-input-setFiles
* @param params `remote.InputSetFilesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-setFiles | command parameter}
* @returns `Promise<local.EmptyResult>`
**/
async inputSetFiles(params) {
const result = await this.send({
method: 'input.setFiles',
params
});
return result.result;
}
}

181

build/bidi/localTypes.d.ts

@@ -28,8 +28,8 @@ /**

}
export type ResultData = BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult;
export type ResultData = BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult | StorageResult;
export interface EmptyResult extends Extensible {
}
export type Event = {
export interface Event extends Extensible {
type: 'event';
} & EventData & Extensible;
}
export type EventData = BrowsingContextEvent | LogEvent | NetworkEvent | ScriptEvent;

@@ -39,3 +39,3 @@ export type Extensible = Record<string, any>;

export type JsUint = number;
export type ErrorCode = 'invalid argument' | 'invalid session id' | 'move target out of bounds' | 'no such alert' | 'no such element' | 'no such frame' | 'no such handle' | 'no such history entry' | 'no such intercept' | 'no such node' | 'no such request' | 'no such script' | 'session not created' | 'unable to capture screen' | 'unable to close browser' | 'unknown command' | 'unknown error' | 'unsupported operation';
export type ErrorCode = 'invalid argument' | 'invalid selector' | 'invalid session id' | 'move target out of bounds' | 'no such alert' | 'no such element' | 'no such frame' | 'no such handle' | 'no such history entry' | 'no such intercept' | 'no such node' | 'no such request' | 'no such script' | 'no such storage partition' | 'no such user context' | 'session not created' | 'unable to capture screen' | 'unable to close browser' | 'unable to set cookie' | 'unable to set file input' | 'underspecified storage partition' | 'unknown command' | 'unknown error' | 'unsupported operation';
export type SessionResult = SessionNewResult | SessionStatusResult;

@@ -51,13 +51,30 @@ export interface SessionCapabilitiesRequest {

platformName?: string;
proxy?: {
proxyType?: 'pac' | 'direct' | 'autodetect' | 'system' | 'manual';
proxyAutoconfigUrl?: string;
ftpProxy?: string;
httpProxy?: string;
noProxy?: string[];
sslProxy?: string;
socksProxy?: string;
socksVersion?: number;
};
proxy?: SessionProxyConfiguration;
webSocketUrl?: boolean;
}
export type SessionProxyConfiguration = SessionAutodetectProxyConfiguration | SessionDirectProxyConfiguration | SessionManualProxyConfiguration | SessionPacProxyConfiguration | SessionSystemProxyConfiguration;
export interface SessionAutodetectProxyConfiguration extends Extensible {
proxyType: 'autodetect';
}
export interface SessionDirectProxyConfiguration extends Extensible {
proxyType: 'direct';
}
export interface SessionManualProxyConfiguration extends SessionSocksProxyConfiguration, Extensible {
proxyType: 'manual';
ftpProxy?: string;
httpProxy?: string;
sslProxy?: string;
noProxy?: string[];
}
export interface SessionSocksProxyConfiguration {
socksProxy: string;
socksVersion: number;
}
export interface SessionPacProxyConfiguration extends Extensible {
proxyType: 'pac';
proxyAutoconfigUrl: string;
}
export interface SessionSystemProxyConfiguration extends Extensible {
proxyType: 'system';
}
export interface SessionStatusResult {

@@ -74,15 +91,17 @@ ready: boolean;

platformName: string;
proxy: {
proxyType?: 'pac' | 'direct' | 'autodetect' | 'system' | 'manual';
proxyAutoconfigUrl?: string;
ftpProxy?: string;
httpProxy?: string;
noProxy?: string[];
sslProxy?: string;
socksProxy?: string;
socksVersion?: number;
};
setWindowRect: boolean;
userAgent: string;
proxy?: SessionProxyConfiguration;
webSocketUrl?: string;
};
}
export type BrowserResult = BrowserCreateUserContextResult | BrowserGetUserContextsResult;
export type BrowserUserContext = string;
export interface BrowserUserContextInfo {
userContext: BrowserUserContext;
}
export type BrowserCreateUserContextResult = BrowserUserContextInfo;
export interface BrowserGetUserContextsResult {
userContexts: BrowserUserContextInfo[];
}
export type BrowsingContextResult = BrowsingContextCaptureScreenshotResult | BrowsingContextCreateResult | BrowsingContextGetTreeResult | BrowsingContextLocateNodesResult | BrowsingContextNavigateResult | BrowsingContextPrintResult | BrowsingContextTraverseHistoryResult;

@@ -93,8 +112,16 @@ export type BrowsingContextEvent = BrowsingContextContextCreated | BrowsingContextContextDestroyed | BrowsingContextDomContentLoaded | BrowsingContextDownloadWillBegin | BrowsingContextFragmentNavigated | BrowsingContextLoad | BrowsingContextNavigationAborted | BrowsingContextNavigationFailed | BrowsingContextNavigationStarted | BrowsingContextUserPromptClosed | BrowsingContextUserPromptOpened;

export interface BrowsingContextInfo {
children: BrowsingContextInfoList | null;
context: BrowsingContextBrowsingContext;
url: string;
children: BrowsingContextInfoList | null;
userContext: BrowserUserContext;
parent?: BrowsingContextBrowsingContext | null;
}
export type BrowsingContextLocator = BrowsingContextCssLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
export type BrowsingContextLocator = BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
export interface BrowsingContextAccessibilityLocator {
type: 'accessibility';
value: {
name?: string;
role?: string;
};
}
export interface BrowsingContextCssLocator {

@@ -223,3 +250,4 @@ type: 'css';

}
export interface NetworkCookie {
export type NetworkSameSite = 'strict' | 'lax' | 'none';
export interface NetworkCookie extends Extensible {
name: string;

@@ -232,3 +260,3 @@ value: NetworkBytesValue;

secure: boolean;
sameSite: 'strict' | 'lax' | 'none';
sameSite: NetworkSameSite;
expiry?: JsUint;

@@ -289,3 +317,3 @@ }

content: NetworkResponseContent;
authChallenge?: NetworkAuthChallenge;
authChallenges?: NetworkAuthChallenge[];
}

@@ -333,2 +361,11 @@ export interface NetworkAddInterceptResult {

export type ScriptChannel = string;
export interface ScriptChannelValue {
type: 'channel';
value: ScriptChannelProperties;
}
export interface ScriptChannelProperties {
channel: ScriptChannel;
serializationOptions?: ScriptSerializationOptions;
ownership?: ScriptResultOwnership;
}
export type ScriptEvaluateResult = ScriptEvaluateResultSuccess | ScriptEvaluateResultException;

@@ -354,2 +391,33 @@ export interface ScriptEvaluateResultSuccess {

export type ScriptInternalId = string;
export type ScriptLocalValue = ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue | ScriptDateLocalValue | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValue | ScriptSetLocalValue;
export type ScriptListLocalValue = (ScriptLocalValue)[];
export interface ScriptArrayLocalValue {
type: 'array';
value: ScriptListLocalValue;
}
export interface ScriptDateLocalValue {
type: 'date';
value: string;
}
export type ScriptMappingLocalValue = (ScriptLocalValue | ScriptLocalValue)[];
export interface ScriptMapLocalValue {
type: 'map';
value: ScriptMappingLocalValue;
}
export interface ScriptObjectLocalValue {
type: 'object';
value: ScriptMappingLocalValue;
}
export interface ScriptRegExpValue {
pattern: string;
flags?: string;
}
export interface ScriptRegExpLocalValue {
type: 'regexp';
value: ScriptRegExpValue;
}
export interface ScriptSetLocalValue {
type: 'set';
value: ScriptListLocalValue;
}
export type ScriptPreloadScript = string;

@@ -393,2 +461,3 @@ export type ScriptRealm = string;

type: 'dedicated-worker';
owners: ScriptRealm[];
}

@@ -414,3 +483,12 @@ export interface ScriptSharedWorkerRealmInfo extends ScriptBaseRealmInfo {

export type ScriptRealmType = 'window' | 'dedicated-worker' | 'shared-worker' | 'service-worker' | 'worker' | 'paint-worklet' | 'audio-worklet' | 'worklet';
export type ScriptRemoteValue = ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptIteratorRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;
export type ScriptRemoteReference = ScriptSharedReference | ScriptRemoteObjectReference;
export interface ScriptSharedReference extends Extensible {
sharedId: ScriptSharedId;
handle?: ScriptHandle;
}
export interface ScriptRemoteObjectReference extends Extensible {
handle: ScriptHandle;
sharedId?: ScriptSharedId;
}
export type ScriptRemoteValue = ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;
export type ScriptListRemoteValue = (ScriptRemoteValue)[];

@@ -440,10 +518,2 @@ export type ScriptMappingRemoteValue = (ScriptRemoteValue | ScriptRemoteValue)[];

}
export interface ScriptRegExpValue {
pattern: string;
flags?: string;
}
export interface ScriptRegExpLocalValue {
type: 'regexp';
value: ScriptRegExpValue;
}
export interface ScriptRegExpRemoteValue extends ScriptRegExpLocalValue {

@@ -453,6 +523,2 @@ handle?: ScriptHandle;

}
export interface ScriptDateLocalValue {
type: 'date';
value: string;
}
export interface ScriptDateRemoteValue extends ScriptDateLocalValue {

@@ -484,7 +550,2 @@ handle?: ScriptHandle;

}
export interface ScriptIteratorRemoteValue {
type: 'iterator';
handle?: ScriptHandle;
internalId?: ScriptInternalId;
}
export interface ScriptGeneratorRemoteValue {

@@ -560,2 +621,13 @@ type: 'generator';

export type ScriptResultOwnership = 'root' | 'none';
export interface ScriptSerializationOptions {
maxDomDepth?: JsUint | null;
/**
* @default null
*/
maxObjectDepth?: JsUint | null;
/**
* @default 'none'
*/
includeShadowTree?: 'none' | 'open' | 'all';
}
export type ScriptSharedId = string;

@@ -601,2 +673,17 @@ export interface ScriptStackFrame {

}
export type StorageResult = StorageDeleteCookiesResult | StorageGetCookiesResult | StorageSetCookieResult;
export interface StoragePartitionKey extends Extensible {
userContext?: string;
sourceOrigin?: string;
}
export interface StorageGetCookiesResult {
cookies: NetworkCookie[];
partitionKey: StoragePartitionKey;
}
export interface StorageSetCookieResult {
partitionKey: StoragePartitionKey;
}
export interface StorageDeleteCookiesResult {
partitionKey: StoragePartitionKey;
}
export interface LogEvent extends LogEntryAdded {

@@ -603,0 +690,0 @@ }

@@ -18,3 +18,3 @@ /**

}
export type CommandData = BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand;
export type CommandData = BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand;
export interface EmptyParams extends Extensible {

@@ -35,13 +35,30 @@ }

platformName?: string;
proxy?: {
proxyType?: 'pac' | 'direct' | 'autodetect' | 'system' | 'manual';
proxyAutoconfigUrl?: string;
ftpProxy?: string;
httpProxy?: string;
noProxy?: string[];
sslProxy?: string;
socksProxy?: string;
socksVersion?: number;
};
proxy?: SessionProxyConfiguration;
webSocketUrl?: boolean;
}
export type SessionProxyConfiguration = SessionAutodetectProxyConfiguration | SessionDirectProxyConfiguration | SessionManualProxyConfiguration | SessionPacProxyConfiguration | SessionSystemProxyConfiguration;
export interface SessionAutodetectProxyConfiguration extends Extensible {
proxyType: 'autodetect';
}
export interface SessionDirectProxyConfiguration extends Extensible {
proxyType: 'direct';
}
export interface SessionManualProxyConfiguration extends SessionSocksProxyConfiguration, Extensible {
proxyType: 'manual';
ftpProxy?: string;
httpProxy?: string;
sslProxy?: string;
noProxy?: string[];
}
export interface SessionSocksProxyConfiguration {
socksProxy: string;
socksVersion: number;
}
export interface SessionPacProxyConfiguration extends Extensible {
proxyType: 'pac';
proxyAutoconfigUrl: string;
}
export interface SessionSystemProxyConfiguration extends Extensible {
proxyType: 'system';
}
export interface SessionSubscriptionRequest {

@@ -74,3 +91,6 @@ events: string[];

}
export interface BrowserCommand extends BrowserClose {
export type BrowserCommand = BrowserClose | BrowserCreateUserContext | BrowserGetUserContexts | BrowserRemoveUserContext;
export type BrowserUserContext = string;
export interface BrowserUserContextInfo {
userContext: BrowserUserContext;
}

@@ -81,5 +101,27 @@ export interface BrowserClose extends Command {

}
export interface BrowserCreateUserContext extends Command {
method: 'browser.createUserContext';
params: EmptyParams;
}
export interface BrowserGetUserContexts extends Command {
method: 'browser.getUserContexts';
params: EmptyParams;
}
export interface BrowserRemoveUserContext extends Command {
method: 'browser.removeUserContext';
params: BrowserRemoveUserContextParameters;
}
export interface BrowserRemoveUserContextParameters {
userContext: BrowserUserContext;
}
export type BrowsingContextCommand = BrowsingContextActivate | BrowsingContextCaptureScreenshot | BrowsingContextClose | BrowsingContextCreate | BrowsingContextGetTree | BrowsingContextHandleUserPrompt | BrowsingContextLocateNodes | BrowsingContextNavigate | BrowsingContextPrint | BrowsingContextReload | BrowsingContextSetViewport | BrowsingContextTraverseHistory;
export type BrowsingContextBrowsingContext = string;
export type BrowsingContextLocator = BrowsingContextCssLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
export type BrowsingContextLocator = BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
export interface BrowsingContextAccessibilityLocator {
type: 'accessibility';
value: {
name?: string;
role?: string;
};
}
export interface BrowsingContextCssLocator {

@@ -155,2 +197,3 @@ type: 'css';

background?: boolean;
userContext?: BrowserUserContext;
}

@@ -182,4 +225,2 @@ export interface BrowsingContextGetTree extends Command {

maxNodeCount?: JsUint;
ownership?: ScriptResultOwnership;
sandbox?: string;
serializationOptions?: ScriptSerializationOptions;

@@ -293,3 +334,4 @@ startNodes?: ScriptSharedReference[];

}
export interface NetworkCookie {
export type NetworkSameSite = 'strict' | 'lax' | 'none';
export interface NetworkCookie extends Extensible {
name: string;

@@ -302,3 +344,3 @@ value: NetworkBytesValue;

secure: boolean;
sameSite: 'strict' | 'lax' | 'none';
sameSite: NetworkSameSite;
expiry?: JsUint;

@@ -324,3 +366,3 @@ }

path?: string;
sameSite?: 'strict' | 'lax' | 'none';
sameSite?: NetworkSameSite;
secure?: boolean;

@@ -347,2 +389,3 @@ }

phases: NetworkInterceptPhase[];
contexts?: BrowsingContextBrowsingContext[];
urlPatterns?: NetworkUrlPattern[];

@@ -513,3 +556,3 @@ }

}
export type ScriptRemoteValue = ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptIteratorRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;
export type ScriptRemoteValue = ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;
export type ScriptListRemoteValue = (ScriptRemoteValue)[];

@@ -569,7 +612,2 @@ export type ScriptMappingRemoteValue = (ScriptRemoteValue | ScriptRemoteValue)[];

}
export interface ScriptIteratorRemoteValue {
type: 'iterator';
handle?: ScriptHandle;
internalId?: ScriptInternalId;
}
export interface ScriptGeneratorRemoteValue {

@@ -673,3 +711,3 @@ type: 'generator';

}
export type ScriptTarget = ScriptRealmTarget | ScriptContextTarget;
export type ScriptTarget = ScriptContextTarget | ScriptRealmTarget;
export interface ScriptAddPreloadScript extends Command {

@@ -734,3 +772,63 @@ method: 'script.addPreloadScript';

}
export type InputCommand = InputPerformActions | InputReleaseActions;
export type StorageCommand = StorageDeleteCookies | StorageGetCookies | StorageSetCookie;
export interface StoragePartitionKey extends Extensible {
userContext?: string;
sourceOrigin?: string;
}
export interface StorageGetCookies extends Command {
method: 'storage.getCookies';
params: StorageGetCookiesParameters;
}
export interface StorageCookieFilter extends Extensible {
name?: string;
value?: NetworkBytesValue;
domain?: string;
path?: string;
size?: JsUint;
httpOnly?: boolean;
secure?: boolean;
sameSite?: NetworkSameSite;
expiry?: JsUint;
}
export interface StorageBrowsingContextPartitionDescriptor {
type: 'context';
context: BrowsingContextBrowsingContext;
}
export interface StorageStorageKeyPartitionDescriptor extends Extensible {
type: 'storageKey';
userContext?: string;
sourceOrigin?: string;
}
export type StoragePartitionDescriptor = StorageBrowsingContextPartitionDescriptor | StorageStorageKeyPartitionDescriptor;
export interface StorageGetCookiesParameters {
filter?: StorageCookieFilter;
partition?: StoragePartitionDescriptor;
}
export interface StorageSetCookie extends Command {
method: 'storage.setCookie';
params: StorageSetCookieParameters;
}
export interface StoragePartialCookie extends Extensible {
name: string;
value: NetworkBytesValue;
domain: string;
path?: string;
httpOnly?: boolean;
secure?: boolean;
sameSite?: NetworkSameSite;
expiry?: JsUint;
}
export interface StorageSetCookieParameters {
cookie: StoragePartialCookie;
partition?: StoragePartitionDescriptor;
}
export interface StorageDeleteCookies extends Command {
method: 'storage.deleteCookies';
params: StorageDeleteCookiesParameters;
}
export interface StorageDeleteCookiesParameters {
filter?: StorageCookieFilter;
partition?: StoragePartitionDescriptor;
}
export type InputCommand = InputPerformActions | InputReleaseActions | InputSetFiles;
export interface InputElementOrigin {

@@ -793,3 +891,3 @@ type: 'element';

}
export interface InputPointerUpAction extends InputPointerCommonProperties {
export interface InputPointerUpAction {
type: 'pointerUp';

@@ -850,2 +948,11 @@ button: JsUint;

}
export interface InputSetFiles extends Command {
method: 'input.setFiles';
params: InputSetFilesParameters;
}
export interface InputSetFilesParameters {
context: BrowsingContextBrowsingContext;
element: ScriptSharedReference;
files: string[];
}
//# sourceMappingURL=remoteTypes.d.ts.map
{
"name": "webdriver",
"version": "9.0.0-alpha.78+fee2f8a88",
"version": "9.0.0-alpha.113+ceeac488e",
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",

@@ -41,11 +41,11 @@ "author": "Christian Bromann <mail@bromann.dev>",

"@types/ws": "^8.5.3",
"@wdio/config": "9.0.0-alpha.78+fee2f8a88",
"@wdio/logger": "9.0.0-alpha.78+fee2f8a88",
"@wdio/protocols": "9.0.0-alpha.78+fee2f8a88",
"@wdio/types": "9.0.0-alpha.78+fee2f8a88",
"@wdio/utils": "9.0.0-alpha.78+fee2f8a88",
"@wdio/config": "9.0.0-alpha.113+ceeac488e",
"@wdio/logger": "9.0.0-alpha.113+ceeac488e",
"@wdio/protocols": "9.0.0-alpha.113+ceeac488e",
"@wdio/types": "9.0.0-alpha.113+ceeac488e",
"@wdio/utils": "9.0.0-alpha.113+ceeac488e",
"deepmerge-ts": "^5.1.0",
"ws": "^8.8.0"
},
"gitHead": "fee2f8a88d132537795eaf144abf1a7e242f99ff"
"gitHead": "ceeac488e86da4d6ffad891632183085e4332be7"
}

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