@applitools/driver 1.24.3 → 1.24.4

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.24.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.24.3...js/driver@1.24.4) (2026-01-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * scrolling element fallback logic | FLD-3959 ([#3442](https://github.com/Applitools-Dev/sdk/issues/3442)) ([36348b4](https://github.com/Applitools-Dev/sdk/commit/36348b46e6a127c99d4ccfa58bf386a8e414fb40))
9
+
3
10
  ## [1.24.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.24.2...js/driver@1.24.3) (2025-12-01)
4
11
 
5
12
 
package/dist/context.js CHANGED
@@ -433,6 +433,10 @@ class Context {
433
433
  this.logger.log(`Using dynamic default scrolling element - "${selector}"`);
434
434
  }
435
435
  this._scrollingElement = await this.element({ type: 'css', selector });
436
+ if (!this._scrollingElement) {
437
+ this.logger.warn(`Scrolling element "${selector}" not found, trying with xpath selector`);
438
+ this._scrollingElement = await this.element({ type: 'xpath', selector: `//${selector}` });
439
+ }
436
440
  }
437
441
  else {
438
442
  this._scrollingElement = await this.element({ type: 'xpath', selector: '//*[@scrollable="true"]' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.24.3",
3
+ "version": "1.24.4",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",