webdriverio 9.12.5 → 9.12.7

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.
@@ -40,7 +40,7 @@ import type { SwipeOptions } from '../../types.js';
40
40
  * </example>
41
41
  *
42
42
  * @alias element.scrollIntoView
43
- * @param {object|boolean=} options options for `Element.scrollIntoView()`. Default for desktop/mobile web: <br/> `{ block: 'start', inline: 'nearest' }` <br /> Default for Mobile Native App <br /> `{ maxScrolls: 10, scrollDirection: 'down' }`
43
+ * @param {object|boolean=} options options for `browser.swipe()`. Default for desktop/mobile web: <br/> `{ direction: 'up', duration: 1500, percent: 0.95, scrollableElement: WebdriverIO.Element }`
44
44
  * @param {string=} options.direction Can be one of `down`, `up`, `left` or `right`, default is `up`. <br /><strong>MOBILE-NATIVE-APP-ONLY</strong>
45
45
  * @rowInfo Down ::<strong>Starting Point:</strong><br/>You place your finger towards the top of the screen.<br/><strong>Movement:</strong><br/>You slide your finger downwards towards the bottom of the screen.<br/><strong>Action:</strong><br/>This also varies by context:<br />- On the home screen or in applications, it typically scrolls the content upwards.<br />- From the top edge, it often opens the notifications panel or quick settings.<br />- In browsers or reading apps, it can be used to scroll through content.
46
46
  * @rowInfo Left ::<strong>Starting Point:</strong><br/>You place your finger on the right side of the screen.<br/><strong>Movement:</strong><br/>You slide your finger horizontally to the left.><br/><strong>Action:</strong><br/>The response to this gesture depends on the application:<br />- It can move to the next item in a carousel or a set of images.<br />- In a navigation context, it might go back to the previous page or close the current view.<br />- On the home screen, it usually switches to the next virtual desktop or screen.
package/build/index.js CHANGED
@@ -3405,6 +3405,7 @@ registerScripts_fn = function(context) {
3405
3405
  !context.parent ? __privateGet(this, _browser4).scriptAddPreloadScript({
3406
3406
  functionDeclaration,
3407
3407
  contexts: [context.context]
3408
+ }).catch(() => {
3408
3409
  }) : Promise.resolve(),
3409
3410
  __privateGet(this, _browser4).scriptCallFunction({
3410
3411
  functionDeclaration,
@@ -4104,7 +4105,6 @@ handleBeforeRequestSent_fn = function(request) {
4104
4105
  });
4105
4106
  };
4106
4107
  handleResponseStarted_fn = function(request) {
4107
- var _a;
4108
4108
  if (!__privateMethod(this, _WebDriverInterception_instances, isRequestMatching_fn).call(this, request)) {
4109
4109
  return;
4110
4110
  }
@@ -4128,11 +4128,9 @@ handleResponseStarted_fn = function(request) {
4128
4128
  if (responseData.body) {
4129
4129
  __privateGet(this, _responseBodies).set(request.request.request, responseData.body);
4130
4130
  }
4131
- const bodyToSend = ((_a = responseData.body) == null ? void 0 : _a.type) === "string" ? responseData.body.value : responseData.body;
4132
4131
  return __privateGet(this, _browser5).networkProvideResponse({
4133
4132
  request: request.request.request,
4134
- ...responseData,
4135
- body: bodyToSend
4133
+ ...responseData
4136
4134
  }).catch(__privateMethod(this, _WebDriverInterception_instances, handleNetworkProvideResponseError_fn));
4137
4135
  }
4138
4136
  __privateMethod(this, _WebDriverInterception_instances, emit_fn).call(this, "continue", request.request.request);
package/build/node.js CHANGED
@@ -3578,6 +3578,7 @@ var PolyfillManager = class _PolyfillManager extends SessionManager {
3578
3578
  !context.parent ? this.#browser.scriptAddPreloadScript({
3579
3579
  functionDeclaration,
3580
3580
  contexts: [context.context]
3581
+ }).catch(() => {
3581
3582
  }) : Promise.resolve(),
3582
3583
  this.#browser.scriptCallFunction({
3583
3584
  functionDeclaration,
@@ -4121,11 +4122,9 @@ var WebDriverInterception = class _WebDriverInterception {
4121
4122
  if (responseData.body) {
4122
4123
  this.#responseBodies.set(request.request.request, responseData.body);
4123
4124
  }
4124
- const bodyToSend = responseData.body?.type === "string" ? responseData.body.value : responseData.body;
4125
4125
  return this.#browser.networkProvideResponse({
4126
4126
  request: request.request.request,
4127
- ...responseData,
4128
- body: bodyToSend
4127
+ ...responseData
4129
4128
  }).catch(this.#handleNetworkProvideResponseError);
4130
4129
  }
4131
4130
  this.#emit("continue", request.request.request);
@@ -1 +1 @@
1
- {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/session/polyfill.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,mBAE9D;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,YAQtB,CAAA;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;gBAKnC,OAAO,EAAE,WAAW,CAAC,OAAO;IA4BxC,eAAe;IAiCT,UAAU;CAGnB"}
1
+ {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/session/polyfill.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,mBAE9D;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,YAQtB,CAAA;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;gBAKnC,OAAO,EAAE,WAAW,CAAC,OAAO;IA4BxC,eAAe;IA0CT,UAAU;CAGnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/interception/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAKhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAMpD,KAAK,WAAW,GAAG,MAAM,GAAG,cAAc,GAAG,MAAM,CAAA;AAOnD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAqB;;gBAclC,OAAO,EAAE,UAA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,qBAAqB;IAClH,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,kCAAkC,KAAK,IAAI,GAAG,qBAAqB;IAC9G,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,qBAAqB;IACnF,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,qBAAqB;IAC/E,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,kCAAkC,KAAK,IAAI,GAAG,qBAAqB;IAarH,eAAe,CAAE,EACb,OAA8C,EAC9C,QAAgD,EAChD,UAAU,GACb,GAAE,cAAmB;CA2BzB;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,cAqBvD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webdriverio",
3
3
  "description": "Next-gen browser and mobile automation test framework for Node.js",
4
- "version": "9.12.5",
4
+ "version": "9.12.7",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <mail@bromann.dev>",
7
7
  "license": "MIT",
@@ -77,12 +77,12 @@
77
77
  "dependencies": {
78
78
  "@types/node": "^20.11.30",
79
79
  "@types/sinonjs__fake-timers": "^8.1.5",
80
- "@wdio/config": "9.12.5",
80
+ "@wdio/config": "9.12.6",
81
81
  "@wdio/logger": "9.4.4",
82
82
  "@wdio/protocols": "9.12.5",
83
83
  "@wdio/repl": "9.4.4",
84
- "@wdio/types": "9.12.3",
85
- "@wdio/utils": "9.12.5",
84
+ "@wdio/types": "9.12.6",
85
+ "@wdio/utils": "9.12.6",
86
86
  "archiver": "^7.0.1",
87
87
  "aria-query": "^5.3.0",
88
88
  "cheerio": "^1.0.0-rc.12",
@@ -99,7 +99,7 @@
99
99
  "rgb2hex": "0.2.5",
100
100
  "serialize-error": "^11.0.3",
101
101
  "urlpattern-polyfill": "^10.0.0",
102
- "webdriver": "9.12.5"
102
+ "webdriver": "9.12.6"
103
103
  },
104
104
  "peerDependencies": {
105
105
  "puppeteer-core": ">=22.x || <=24.x"
@@ -109,5 +109,5 @@
109
109
  "optional": true
110
110
  }
111
111
  },
112
- "gitHead": "795e4525599909356d02ef0788c1ece7a7d85ecf"
112
+ "gitHead": "e5cf99fcaae6f2c7ca3592e3d6974f2949dc7aad"
113
113
  }