Socket
Socket
Sign inDemoInstall

webdriver

Package Overview
Dependencies
Maintainers
3
Versions
480
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.1.1 to 9.1.2

build/request/error.d.ts

2

build/command.d.ts
import { type CommandEndpoint } from '@wdio/protocols';
import type { WebDriverResponse } from './request/index.js';
import type { WebDriverResponse } from './request/types.js';
import type { BaseClient, BidiResponses } from './types.js';
export default function (method: string, endpointUri: string, commandInfo: CommandEndpoint, doubleEncodeVariables?: boolean): (this: BaseClient, ...args: any[]) => Promise<WebDriverResponse | BidiResponses | void>;
//# sourceMappingURL=command.d.ts.map
import type { Options } from '@wdio/types';
import type { RemoteConfig } from './types.js';
export declare const DEFAULTS: Options.Definition<Required<RemoteConfig>>;
export declare const REG_EXPS: {
commandName: RegExp;
execFn: RegExp;
};
export declare const ELEMENT_KEY = "element-6066-11e4-a52e-4f735466cecf";
export declare const SHADOW_ELEMENT_KEY = "shadow-6066-11e4-a52e-4f735466cecf";
//# sourceMappingURL=constants.d.ts.map

@@ -9,2 +9,6 @@ /**

export declare const RETRYABLE_ERROR_CODES: string[];
export declare const REG_EXPS: {
commandName: RegExp;
execFn: RegExp;
};
//# sourceMappingURL=constants.d.ts.map
import { EventEmitter } from 'node:events';
import { URL } from 'node:url';
import type { Options } from '@wdio/types';
import type { WebDriverResponse } from './types.js';
type RequestLibResponse = Options.RequestLibResponse;
type RequestOptions = Omit<Options.WebDriver, 'capabilities'>;
export declare class RequestLibError extends Error {
statusCode?: number;
body?: any;
code?: string;
}
export interface WebDriverResponse {
value: any;
/**
* error case
* https://w3c.github.io/webdriver/webdriver-spec.html#dfn-send-an-error
*/
error?: string;
message?: string;
stacktrace?: string;
/**
* JSONWP property
*/
status?: number;
sessionId?: string;
}
export declare const COMMANDS_WITHOUT_RETRY: string[];

@@ -27,0 +8,0 @@ export default abstract class WebDriverRequest extends EventEmitter {

import type { EventEmitter } from 'node:events';
import type { Options } from '@wdio/types';
import type { WebDriverResponse } from './request/index.js';
import type { WebDriverResponse } from './request/types.js';
import type { Client, JSONWPCommandError, SessionFlags, RemoteConfig } from './types.js';

@@ -31,11 +31,2 @@ /**

/**
* helper method to determine the error from webdriver response
* @param {Object} body body object
* @return {Object} error
*/
export declare function getErrorFromResponseBody(body: any, requestOptions: any): Error;
export declare class CustomRequestError extends Error {
constructor(body: WebDriverResponse, requestOptions: any);
}
/**
* return all supported flags and return them in a format so we can attach them

@@ -60,6 +51,2 @@ * to the instance protocol

/**
* return timeout error with information about the executing command on which the test hangs
*/
export declare function getRequestError(error: Error, requestOptions: RequestInit, url: URL): Error;
/**
* Enhance the monad with WebDriver Bidi primitives if a connection can be established successfully

@@ -66,0 +53,0 @@ * @param socketUrl url to bidi interface

{
"name": "webdriver",
"version": "9.1.1",
"version": "9.1.2",
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",

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

"@types/ws": "^8.5.3",
"@wdio/config": "9.1.0",
"@wdio/config": "9.1.2",
"@wdio/logger": "9.1.0",
"@wdio/protocols": "9.0.8",
"@wdio/types": "9.1.0",
"@wdio/utils": "9.1.0",
"@wdio/types": "9.1.2",
"@wdio/utils": "9.1.2",
"deepmerge-ts": "^7.0.3",
"ws": "^8.8.0"
},
"gitHead": "f70367e464d7c056328cd7d8e57ea296c0e766ae"
"gitHead": "e009b5102f9f98b99fa62df870ce7f3f5bc1b99a"
}

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 too big to display

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