@applitools/screenshoter 3.12.9 → 3.12.11

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,35 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.12.11](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.12.10...js/screenshoter@3.12.11) (2026-01-11)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/driver bumped to 1.24.4
9
+ #### Bug Fixes
10
+
11
+ * scrolling element fallback logic | FLD-3959 ([#3442](https://github.com/Applitools-Dev/sdk/issues/3442)) ([36348b4](https://github.com/Applitools-Dev/sdk/commit/36348b46e6a127c99d4ccfa58bf386a8e414fb40))
12
+ * @applitools/spec-driver-webdriver bumped to 1.5.4
13
+
14
+
15
+ ## [3.12.10](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.12.9...js/screenshoter@3.12.10) (2025-12-01)
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * @applitools/utils bumped to 1.14.1
21
+ #### Bug Fixes
22
+
23
+ * setup script compatibility with ESM | AD-11756 ([#3363](https://github.com/Applitools-Dev/sdk/issues/3363)) ([d1222f4](https://github.com/Applitools-Dev/sdk/commit/d1222f40a74ab62782bebeeb0cf899aac3f3d3b6))
24
+ * @applitools/logger bumped to 2.2.7
25
+
26
+ * @applitools/image bumped to 1.2.6
27
+
28
+ * @applitools/driver bumped to 1.24.3
29
+
30
+ * @applitools/spec-driver-webdriver bumped to 1.5.3
31
+
32
+
3
33
  ## [3.12.9](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.12.8...js/screenshoter@3.12.9) (2025-11-19)
4
34
 
5
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/screenshoter",
3
- "version": "3.12.9",
3
+ "version": "3.12.11",
4
4
  "description": "Applitools universal screenshoter for web and native applications",
5
5
  "keywords": [
6
6
  "applitools",
@@ -56,14 +56,14 @@
56
56
  "appium:setup": "mkdir -p ./logs && appium --address 127.0.0.1 --port 4723 --base-path /wd/hub --log-level error:info --log ./logs/appium.log --relaxed-security &"
57
57
  },
58
58
  "dependencies": {
59
- "@applitools/image": "1.2.5",
60
- "@applitools/logger": "2.2.6",
59
+ "@applitools/image": "1.2.6",
60
+ "@applitools/logger": "2.2.7",
61
61
  "@applitools/snippets": "2.7.0",
62
- "@applitools/utils": "1.14.0"
62
+ "@applitools/utils": "1.14.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@applitools/driver": "^1.24.2",
66
- "@applitools/spec-driver-webdriver": "^1.5.2",
65
+ "@applitools/driver": "^1.24.4",
66
+ "@applitools/spec-driver-webdriver": "^1.5.4",
67
67
  "@applitools/test-utils": "^1.5.17",
68
68
  "appium": "^1.22.3",
69
69
  "pixelmatch": "^5.3.0",
package/src/get-target.js CHANGED
@@ -45,14 +45,16 @@ async function getTarget({window, context, region, fully, scrollingMode, logger}
45
45
  // if element is scrollable, then take screenshot of the full element content, otherwise take screenshot of full element
46
46
  returnRegion = isScrollable ? null : await element.getRegion()
47
47
  scrollingElement = isScrollable ? element : await elementContext.getScrollingElement()
48
+
48
49
  // css stitching could be applied only to root element of its context
49
- scrollingMode = scrollingMode === 'css' && !(await scrollingElement.isRoot()) ? 'mixed+' : scrollingMode
50
+ scrollingMode =
51
+ scrollingMode === 'css' && scrollingElement && !(await scrollingElement.isRoot()) ? 'mixed+' : scrollingMode
50
52
  } else {
51
53
  scrollingElement = await context.getScrollingElement()
52
54
  returnRegion = await element.getRegion()
53
55
  }
54
56
  const scroller = makeScroller({element: scrollingElement, scrollingMode, logger})
55
- if (returnRegion && !environment.isNative && !(await scrollingElement.isRoot())) {
57
+ if (returnRegion && !environment.isNative && scrollingElement && !(await scrollingElement.isRoot())) {
56
58
  const scrollerOffset = await scroller.getScrollOffset()
57
59
  returnRegion = utils.geometry.offset(returnRegion, scrollerOffset)
58
60
  }