@applitools/driver 1.25.1 → 1.25.3
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/CHANGELOG.md +41 -0
- package/dist/driver.js +7 -2
- package/package.json +4 -4
- package/types/driver.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.25.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.2...js/driver@1.25.3) (2026-03-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* enhance NML error messages for better user-facing diagnostics | FLD-4279 ([#3622](https://github.com/Applitools-Dev/sdk/issues/3622)) ([2aef039](https://github.com/Applitools-Dev/sdk/commit/2aef0395875fd0ff0b4f657d769bda23d66660ad))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/snippets bumped to 2.8.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
|
|
17
|
+
|
|
18
|
+
## [1.25.2](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.1...js/driver@1.25.2) (2026-03-08)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* unskip js/mcp ([#3618](https://github.com/Applitools-Dev/sdk/issues/3618)) ([103f9e2](https://github.com/Applitools-Dev/sdk/commit/103f9e2f18cddc225aba2f2f59556e5fa38965c0))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* @applitools/utils bumped to 1.14.2
|
|
29
|
+
#### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* unskip js/mcp ([#3618](https://github.com/Applitools-Dev/sdk/issues/3618)) ([103f9e2](https://github.com/Applitools-Dev/sdk/commit/103f9e2f18cddc225aba2f2f59556e5fa38965c0))
|
|
32
|
+
* @applitools/logger bumped to 2.2.9
|
|
33
|
+
#### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* unskip js/mcp ([#3618](https://github.com/Applitools-Dev/sdk/issues/3618)) ([103f9e2](https://github.com/Applitools-Dev/sdk/commit/103f9e2f18cddc225aba2f2f59556e5fa38965c0))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* @applitools/snippets bumped to 2.7.1
|
|
40
|
+
#### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* unskip js/mcp ([#3618](https://github.com/Applitools-Dev/sdk/issues/3618)) ([103f9e2](https://github.com/Applitools-Dev/sdk/commit/103f9e2f18cddc225aba2f2f59556e5fa38965c0))
|
|
43
|
+
|
|
3
44
|
## [1.25.1](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.0...js/driver@1.25.1) (2026-02-16)
|
|
4
45
|
|
|
5
46
|
|
package/dist/driver.js
CHANGED
|
@@ -493,7 +493,11 @@ class Driver {
|
|
|
493
493
|
(_a = (_b = this._state).nmlElement) !== null && _a !== void 0 ? _a : (_b.nmlElement = await this.waitFor({ type: 'accessibility id', selector: 'Applitools_View' }, { timeout: 10000 }).catch(() => null));
|
|
494
494
|
if (!this._state.nmlElement) {
|
|
495
495
|
this._logger.log('Broker url extraction is failed due to absence of nml element');
|
|
496
|
-
return
|
|
496
|
+
return {
|
|
497
|
+
error:
|
|
498
|
+
// user facing error - doesn't mention broker on purpose to avoid confusion
|
|
499
|
+
'NML not found - please make sure that the Application has NML library instrumented or contact support for more details',
|
|
500
|
+
};
|
|
497
501
|
}
|
|
498
502
|
try {
|
|
499
503
|
let result;
|
|
@@ -506,7 +510,8 @@ class Driver {
|
|
|
506
510
|
await utils.general.sleep(1000);
|
|
507
511
|
} while (!result.error);
|
|
508
512
|
this._logger.error('Broker url extraction has failed with error', result.error);
|
|
509
|
-
|
|
513
|
+
// user facing error - doesn't mention broker on purpose to avoid confusion
|
|
514
|
+
return { error: `NML initialization has failed with error: ${result.error}` };
|
|
510
515
|
}
|
|
511
516
|
catch (error) {
|
|
512
517
|
this._logger.error('Broker url extraction has failed with error and will be retried', error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/driver",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.3",
|
|
4
4
|
"description": "Applitools universal framework wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@applitools/logger": "2.2.
|
|
77
|
-
"@applitools/snippets": "2.
|
|
78
|
-
"@applitools/utils": "1.14.
|
|
76
|
+
"@applitools/logger": "2.2.9",
|
|
77
|
+
"@applitools/snippets": "2.8.0",
|
|
78
|
+
"@applitools/utils": "1.14.2",
|
|
79
79
|
"semver": "7.6.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
package/types/driver.d.ts
CHANGED
|
@@ -78,7 +78,9 @@ export declare class Driver<T extends SpecType> {
|
|
|
78
78
|
getSessionId(): Promise<string | null>;
|
|
79
79
|
getDriverUrl(): Promise<string | null>;
|
|
80
80
|
getHelper(): Promise<HelperAndroid<T> | HelperIOS<T> | null>;
|
|
81
|
-
extractBrokerUrl(): Promise<string | null
|
|
81
|
+
extractBrokerUrl(): Promise<string | null | {
|
|
82
|
+
error: string;
|
|
83
|
+
}>;
|
|
82
84
|
getSessionMetadata(): Promise<any | undefined>;
|
|
83
85
|
getWorlds(): Promise<string[] | null>;
|
|
84
86
|
getCurrentWorld(): Promise<string | null>;
|