webdriver 8.0.14 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bidi.d.ts +1 -1
- package/build/cjs/index.d.ts +19 -1
- package/build/cjs/index.d.ts.map +1 -1
- package/build/cjs/index.js +6 -5
- package/build/command.d.ts +2 -2
- package/build/command.d.ts.map +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/request/factory.d.ts +1 -1
- package/build/request/index.d.ts +2 -2
- package/build/request/node.d.ts +1 -1
- package/build/types.d.ts +1 -1
- package/build/utils.d.ts +1 -1
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +1 -1
- package/package.json +11 -8
package/build/bidi.d.ts
CHANGED
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Options } from '@wdio/types';
|
|
2
|
+
import type { Client, AttachOptions } from '../types.js';
|
|
3
|
+
declare class WebDriver {
|
|
4
|
+
static newSession(options: Options.WebDriver, modifier?: (...args: any[]) => any, userPrototype?: {}, customCommandWrapper?: (...args: any[]) => any): Promise<Client>;
|
|
5
|
+
/**
|
|
6
|
+
* allows user to attach to existing sessions
|
|
7
|
+
*/
|
|
8
|
+
static attachToSession(options?: AttachOptions, modifier?: (...args: any[]) => any, userPrototype?: {}, commandWrapper?: (...args: any[]) => any): Promise<Client>;
|
|
9
|
+
/**
|
|
10
|
+
* Changes The instance session id and browser capabilities for the new session
|
|
11
|
+
* directly into the passed in browser object
|
|
12
|
+
*
|
|
13
|
+
* @param {object} instance the object we get from a new browser session.
|
|
14
|
+
* @returns {string} the new session id of the browser
|
|
15
|
+
*/
|
|
16
|
+
static reloadSession(instance: Client): Promise<string>;
|
|
17
|
+
static get WebDriver(): typeof WebDriver;
|
|
18
|
+
}
|
|
19
|
+
export = WebDriver;
|
|
2
20
|
//# sourceMappingURL=index.d.ts.map
|
package/build/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAExD,cAAM,SAAS;WACE,UAAU,CACnB,OAAO,EAAE,OAAO,CAAC,SAAS,EAC1B,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,oBAAoB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAC/C,OAAO,CAAC,MAAM,CAAC;IAKlB;;OAEG;WACU,eAAe,CACxB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GACzC,OAAO,CAAC,MAAM,CAAC;IAKlB;;;;;;OAMG;WACU,aAAa,CAAC,QAAQ,EAAE,MAAM;IAK3C,MAAM,KAAK,SAAS,qBAEnB;CACJ;AAED,SAAS,SAAS,CAAA"}
|
package/build/cjs/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
class WebDriver {
|
|
2
3
|
static async newSession(options, modifier, userPrototype = {}, customCommandWrapper) {
|
|
3
4
|
const WebDriver = (await import('../index.js')).default;
|
|
4
5
|
return WebDriver.newSession(options, modifier, userPrototype, customCommandWrapper);
|
|
@@ -14,9 +15,9 @@ module.exports = class WebDriver {
|
|
|
14
15
|
* Changes The instance session id and browser capabilities for the new session
|
|
15
16
|
* directly into the passed in browser object
|
|
16
17
|
*
|
|
17
|
-
* @param {
|
|
18
|
+
* @param {object} instance the object we get from a new browser session.
|
|
18
19
|
* @returns {string} the new session id of the browser
|
|
19
|
-
|
|
20
|
+
*/
|
|
20
21
|
static async reloadSession(instance) {
|
|
21
22
|
const WebDriver = (await import('../index.js')).default;
|
|
22
23
|
return WebDriver.reloadSession(instance);
|
|
@@ -24,5 +25,5 @@ module.exports = class WebDriver {
|
|
|
24
25
|
static get WebDriver() {
|
|
25
26
|
return WebDriver;
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
28
|
+
}
|
|
29
|
+
module.exports = WebDriver;
|
package/build/command.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CommandEndpoint, BidiResponse } from '@wdio/protocols';
|
|
2
2
|
import type { BidiHandler } from './bidi.js';
|
|
3
|
-
import type { WebDriverResponse } from './request';
|
|
4
|
-
import type { BaseClient } from './types';
|
|
3
|
+
import type { WebDriverResponse } from './request/index.js';
|
|
4
|
+
import type { BaseClient } from './types.js';
|
|
5
5
|
interface BaseClientWithEventHandler extends BaseClient {
|
|
6
6
|
eventMiddleware: BidiHandler;
|
|
7
7
|
}
|
package/build/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAGpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAGpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAK5C,UAAU,0BAA2B,SAAQ,UAAU;IACnD,eAAe,EAAE,WAAW,CAAA;CAC/B;AAED,MAAM,CAAC,OAAO,WACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,eAAe,EAC5B,qBAAqB,UAAQ,UAIgB,0BAA0B,WAAW,GAAG,EAAE,KAAG,QAAQ,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAAC,CA4G7I"}
|
package/build/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Options } from '@wdio/types';
|
|
|
2
2
|
import command from './command.js';
|
|
3
3
|
import { DEFAULTS } from './constants.js';
|
|
4
4
|
import { getPrototype, getEnvironmentVars } from './utils.js';
|
|
5
|
-
import type { Client, AttachOptions } from './types';
|
|
5
|
+
import type { Client, AttachOptions } from './types.js';
|
|
6
6
|
export default class WebDriver {
|
|
7
7
|
static newSession(options: Options.WebDriver, modifier?: (...args: any[]) => any, userPrototype?: {}, customCommandWrapper?: (...args: any[]) => any): Promise<Client>;
|
|
8
8
|
/**
|
|
@@ -13,9 +13,9 @@ export default class WebDriver {
|
|
|
13
13
|
* Changes The instance session id and browser capabilities for the new session
|
|
14
14
|
* directly into the passed in browser object
|
|
15
15
|
*
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {object} instance the object we get from a new browser session.
|
|
17
17
|
* @returns {string} the new session id of the browser
|
|
18
|
-
|
|
18
|
+
*/
|
|
19
19
|
static reloadSession(instance: Client): Promise<string>;
|
|
20
20
|
static get WebDriver(): typeof WebDriver;
|
|
21
21
|
}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","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M;IAW3C,MAAM,KAAK,SAAS,qBAEnB;CACJ;AAED;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAC9D,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -76,9 +76,9 @@ export default class WebDriver {
|
|
|
76
76
|
* Changes The instance session id and browser capabilities for the new session
|
|
77
77
|
* directly into the passed in browser object
|
|
78
78
|
*
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {object} instance the object we get from a new browser session.
|
|
80
80
|
* @returns {string} the new session id of the browser
|
|
81
|
-
|
|
81
|
+
*/
|
|
82
82
|
static async reloadSession(instance) {
|
|
83
83
|
const params = {
|
|
84
84
|
...instance.options,
|
package/build/request/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
3
|
import { EventEmitter } from 'node:events';
|
|
4
4
|
import type { URL } from 'node:url';
|
|
5
5
|
import type { Options } from '@wdio/types';
|
package/build/request/node.d.ts
CHANGED
package/build/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { EventEmitter } from 'node:events';
|
|
3
3
|
import type { Options, Capabilities } from '@wdio/types';
|
|
4
4
|
import type { ProtocolCommands, ProtocolCommandsAsync } from '@wdio/protocols';
|
package/build/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Options, Capabilities } from '@wdio/types';
|
|
2
2
|
import type { WebDriverResponse } from './request/index.js';
|
|
3
|
-
import type { Client, JSONWPCommandError, SessionFlags } from './types';
|
|
3
|
+
import type { Client, JSONWPCommandError, SessionFlags } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* start browser session with WebDriver protocol
|
|
6
6
|
*/
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAY1E;;GAEG;AACH,wBAAsB,qBAAqB,CAAE,MAAM,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,YAAY,CAAC,mBAAmB,CAAA;CAAE,CAAC,CAmEtJ;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,WA4DlF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC,sCA8C3H;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,SAcvE;AAGD,qBAAa,kBAAmB,SAAQ,KAAK;gBAC5B,IAAI,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG;CAyB5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;EAWlJ;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,QAmBhD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAS,kBAAkB,WAAU,QAAQ,iBAAiB,CAAC,WAmD1F,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,UAAW,KAAK,kBAAkB,QAAQ,iBAAiB,KAAG,KASzF,CAAA"}
|
package/build/utils.js
CHANGED
|
@@ -168,7 +168,7 @@ export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, is
|
|
|
168
168
|
* only apply special commands when running tests using
|
|
169
169
|
* Selenium Grid or Selenium Standalone server
|
|
170
170
|
*/
|
|
171
|
-
isSeleniumStandalone ? SeleniumProtocol : {});
|
|
171
|
+
isSeleniumStandalone ? SeleniumProtocol : {}, {});
|
|
172
172
|
for (const [endpoint, methods] of Object.entries(ProtocolCommands)) {
|
|
173
173
|
for (const [method, commandData] of Object.entries(methods)) {
|
|
174
174
|
prototype[commandData.command] = { value: command(method, endpoint, commandData, isSeleniumStandalone) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": [
|
|
13
13
|
{
|
|
14
|
+
"types": "./build/index.d.ts",
|
|
14
15
|
"import": "./build/index.js",
|
|
15
16
|
"require": "./build/cjs/index.js"
|
|
16
17
|
},
|
|
@@ -35,16 +36,18 @@
|
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@types/node": "^18.0.0",
|
|
38
|
-
"@
|
|
39
|
-
"@wdio/
|
|
40
|
-
"@wdio/
|
|
41
|
-
"@wdio/
|
|
42
|
-
"@wdio/
|
|
43
|
-
"@wdio/utils": "8.0.14",
|
|
39
|
+
"@wdio/config": "8.1.0",
|
|
40
|
+
"@wdio/logger": "8.1.0",
|
|
41
|
+
"@wdio/protocols": "8.1.0",
|
|
42
|
+
"@wdio/types": "8.1.0",
|
|
43
|
+
"@wdio/utils": "8.1.0",
|
|
44
44
|
"deepmerge-ts": "^4.2.2",
|
|
45
45
|
"got": "^12.1.0",
|
|
46
46
|
"ky": "^0.33.0",
|
|
47
47
|
"ws": "^8.8.0"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/ws": "^8.5.3"
|
|
51
|
+
},
|
|
52
|
+
"gitHead": "f505134606f99129c816acb00f22e39032e60820"
|
|
50
53
|
}
|