@applitools/driver 1.25.2 → 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 CHANGED
@@ -1,5 +1,20 @@
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
+
3
18
  ## [1.25.2](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.1...js/driver@1.25.2) (2026-03-08)
4
19
 
5
20
 
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 null;
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
- return null;
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.2",
3
+ "version": "1.25.3",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@applitools/logger": "2.2.9",
77
- "@applitools/snippets": "2.7.1",
77
+ "@applitools/snippets": "2.8.0",
78
78
  "@applitools/utils": "1.14.2",
79
79
  "semver": "7.6.2"
80
80
  },
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>;