webdriver 8.0.0-alpha.512 → 8.0.0-alpha.518
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/utils.d.ts.map +1 -1
- package/build/utils.js +5 -3
- package/package.json +8 -7
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
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,SAAS,CAAA;AAYvE;;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,sCA6C3H;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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { deepmergeCustom } from 'deepmerge-ts';
|
|
1
2
|
import logger from '@wdio/logger';
|
|
2
3
|
import { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol } from '@wdio/protocols';
|
|
3
4
|
import { transformCommandLogResult } from '@wdio/utils';
|
|
@@ -6,6 +7,7 @@ import RequestFactory from './request/factory.js';
|
|
|
6
7
|
import command from './command.js';
|
|
7
8
|
import { REG_EXPS } from './constants.js';
|
|
8
9
|
const log = logger('webdriver');
|
|
10
|
+
const deepmerge = deepmergeCustom({ mergeArrays: false });
|
|
9
11
|
const BROWSER_DRIVER_ERRORS = [
|
|
10
12
|
'unknown command: wd/hub/session',
|
|
11
13
|
'HTTP method not allowed',
|
|
@@ -133,14 +135,14 @@ export function isSuccessfulResponse(statusCode, body) {
|
|
|
133
135
|
*/
|
|
134
136
|
export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, isSeleniumStandalone }) {
|
|
135
137
|
const prototype = {};
|
|
136
|
-
const ProtocolCommands =
|
|
138
|
+
const ProtocolCommands = deepmerge(
|
|
137
139
|
/**
|
|
138
140
|
* if mobile apply JSONWire and WebDriver protocol because
|
|
139
141
|
* some legacy JSONWire commands are still used in Appium
|
|
140
142
|
* (e.g. set/get geolocation)
|
|
141
143
|
*/
|
|
142
144
|
isMobile
|
|
143
|
-
?
|
|
145
|
+
? deepmerge(JsonWProtocol, WebDriverProtocol)
|
|
144
146
|
: isW3C ? WebDriverProtocol : JsonWProtocol,
|
|
145
147
|
/**
|
|
146
148
|
* enable Bidi protocol for W3C sessions
|
|
@@ -149,7 +151,7 @@ export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, is
|
|
|
149
151
|
/**
|
|
150
152
|
* only apply mobile protocol if session is actually for mobile
|
|
151
153
|
*/
|
|
152
|
-
isMobile ?
|
|
154
|
+
isMobile ? deepmerge(MJsonWProtocol, AppiumProtocol) : {},
|
|
153
155
|
/**
|
|
154
156
|
* only apply special Chrome commands if session is using Chrome
|
|
155
157
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.518+af6190801",
|
|
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",
|
|
@@ -36,14 +36,15 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@types/node": "^18.0.0",
|
|
38
38
|
"@types/ws": "^8.5.3",
|
|
39
|
-
"@wdio/config": "8.0.0-alpha.
|
|
40
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
41
|
-
"@wdio/protocols": "8.0.0-alpha.
|
|
42
|
-
"@wdio/types": "8.0.0-alpha.
|
|
43
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
39
|
+
"@wdio/config": "8.0.0-alpha.518+af6190801",
|
|
40
|
+
"@wdio/logger": "8.0.0-alpha.518+af6190801",
|
|
41
|
+
"@wdio/protocols": "8.0.0-alpha.518+af6190801",
|
|
42
|
+
"@wdio/types": "8.0.0-alpha.518+af6190801",
|
|
43
|
+
"@wdio/utils": "8.0.0-alpha.518+af6190801",
|
|
44
|
+
"deepmerge-ts": "^4.2.2",
|
|
44
45
|
"got": "^12.1.0",
|
|
45
46
|
"ky": "^0.32.1",
|
|
46
47
|
"ws": "^8.8.0"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "af6190801a0ec74c6799cc993e512aecf5846c4c"
|
|
49
50
|
}
|