webdriverio 9.9.1 → 9.9.2
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.
|
@@ -3,7 +3,9 @@ type WaitState = 'none' | 'interactive' | 'networkIdle' | 'complete';
|
|
|
3
3
|
*
|
|
4
4
|
* The `url` command loads an URL in the browser. If a baseUrl is specified in the config,
|
|
5
5
|
* it will be prepended to the url parameter using node's url.resolve() method. Calling
|
|
6
|
-
* `browser.url('...')` with the same url as last time will trigger a page reload.
|
|
6
|
+
* `browser.url('...')` with the same url as last time will trigger a page reload. However,
|
|
7
|
+
* if the url contains a hash, the browser will not trigger a new navigation and the user
|
|
8
|
+
* has to [refresh](/docs/api/webdriver#refresh) the page to trigger one.
|
|
7
9
|
*
|
|
8
10
|
* The command returns an `WebdriverIO.Request` object that contains information about the
|
|
9
11
|
* request and response data of the page load.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/url.ts"],"names":[],"mappings":"AAKA,KAAK,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,CAAA;AAKpE
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/url.ts"],"names":[],"mappings":"AAKA,KAAK,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,CAAA;AAKpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,wBAAsB,GAAG,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,CA6HrC;AAED,UAAU,iBAAiB;IACvB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE;QACH,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACf,CAAA;IACD;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAA;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AAEH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,GAAE,iBAAkC,
|
|
1
|
+
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AAEH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,GAAE,iBAAkC,oBAgEpD;AASD,UAAU,iBAAiB;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC/B"}
|
package/build/index.js
CHANGED
|
@@ -4685,6 +4685,16 @@ var _NetworkManager = class _NetworkManager extends SessionManager {
|
|
|
4685
4685
|
return __privateGet(this, _initialize3);
|
|
4686
4686
|
}
|
|
4687
4687
|
getRequestResponseData(navigationId) {
|
|
4688
|
+
if (!__privateGet(this, _requests).has(navigationId)) {
|
|
4689
|
+
const lastRequest = Array.from(__privateGet(this, _requests).values()).pop();
|
|
4690
|
+
if (!lastRequest) {
|
|
4691
|
+
return void 0;
|
|
4692
|
+
}
|
|
4693
|
+
const lastRequestUrl = new URL(lastRequest.url);
|
|
4694
|
+
if (lastRequestUrl.hash !== "") {
|
|
4695
|
+
return lastRequest;
|
|
4696
|
+
}
|
|
4697
|
+
}
|
|
4688
4698
|
return __privateGet(this, _requests).get(navigationId);
|
|
4689
4699
|
}
|
|
4690
4700
|
/**
|
|
@@ -6929,8 +6939,7 @@ async function isDisplayed(commandParams = DEFAULT_PARAMS) {
|
|
|
6929
6939
|
if (!await hasElementId(this)) {
|
|
6930
6940
|
return false;
|
|
6931
6941
|
}
|
|
6932
|
-
|
|
6933
|
-
if (browser2.isMobile && isNativeApplication) {
|
|
6942
|
+
if (browser2.isMobile && browser2.isNativeContext) {
|
|
6934
6943
|
if (commandParams == null ? void 0 : commandParams.withinViewport) {
|
|
6935
6944
|
throw new Error(
|
|
6936
6945
|
"Cannot determine element visibility within viewport for native mobile apps as it is not feasible to determine full vertical and horizontal application bounds. In most cases a basic visibility check should suffice."
|
package/build/node.js
CHANGED
|
@@ -4836,6 +4836,16 @@ var NetworkManager = class _NetworkManager extends SessionManager {
|
|
|
4836
4836
|
response.children?.push(request);
|
|
4837
4837
|
}
|
|
4838
4838
|
getRequestResponseData(navigationId) {
|
|
4839
|
+
if (!this.#requests.has(navigationId)) {
|
|
4840
|
+
const lastRequest = Array.from(this.#requests.values()).pop();
|
|
4841
|
+
if (!lastRequest) {
|
|
4842
|
+
return void 0;
|
|
4843
|
+
}
|
|
4844
|
+
const lastRequestUrl = new URL(lastRequest.url);
|
|
4845
|
+
if (lastRequestUrl.hash !== "") {
|
|
4846
|
+
return lastRequest;
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4839
4849
|
return this.#requests.get(navigationId);
|
|
4840
4850
|
}
|
|
4841
4851
|
/**
|
|
@@ -6654,8 +6664,7 @@ async function isDisplayed(commandParams = DEFAULT_PARAMS) {
|
|
|
6654
6664
|
if (!await hasElementId(this)) {
|
|
6655
6665
|
return false;
|
|
6656
6666
|
}
|
|
6657
|
-
|
|
6658
|
-
if (browser2.isMobile && isNativeApplication) {
|
|
6667
|
+
if (browser2.isMobile && browser2.isNativeContext) {
|
|
6659
6668
|
if (commandParams?.withinViewport) {
|
|
6660
6669
|
throw new Error(
|
|
6661
6670
|
"Cannot determine element visibility within viewport for native mobile apps as it is not feasible to determine full vertical and horizontal application bounds. In most cases a basic visibility check should suffice."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkManager.d.ts","sourceRoot":"","sources":["../../src/session/networkManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,kBAE7D;AAMD;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,cAAc;;gBAMlC,OAAO,EAAE,WAAW,CAAC,OAAO;IA6BxC,eAAe,IAAI,IAAI;IAQjB,UAAU;IA+JhB,sBAAsB,CAAC,YAAY,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"networkManager.d.ts","sourceRoot":"","sources":["../../src/session/networkManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,kBAE7D;AAMD;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,cAAc;;gBAMlC,OAAO,EAAE,WAAW,CAAC,OAAO;IA6BxC,eAAe,IAAI,IAAI;IAQjB,UAAU;IA+JhB,sBAAsB,CAAC,YAAY,EAAE,MAAM;IAkB3C;;;;OAIG;IACH,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,EAAE;CAqBlE"}
|
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.9.
|
|
4
|
+
"version": "9.9.2",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"optional": true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "05d66ef279e7d2c8abf97bb9029016f0eafcfafd"
|
|
113
113
|
}
|