@applitools/screenshoter 3.10.7 → 3.11.1

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,62 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.11.1](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.11.0...js/screenshoter@3.11.1) (2025-04-17)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/snippets bumped to 2.6.5
14
+ #### Performance Improvements
15
+
16
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
17
+ * @applitools/driver bumped to 1.21.1
18
+ #### Bug Fixes
19
+
20
+ * executePoll error logging FLD-2870 ([#2890](https://github.com/Applitools-Dev/sdk/issues/2890)) ([a8ff720](https://github.com/Applitools-Dev/sdk/commit/a8ff720efafacabe2023282748a6d8a0f1b3ff73))
21
+
22
+
23
+
24
+ * @applitools/spec-driver-webdriver bumped to 1.2.2
25
+ #### Performance Improvements
26
+
27
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
28
+
29
+
30
+
31
+
32
+ ## [3.11.0](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.10.7...js/screenshoter@3.11.0) (2025-03-30)
33
+
34
+
35
+ ### Features
36
+
37
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
38
+
39
+
40
+ ### Dependencies
41
+
42
+ * @applitools/utils bumped to 1.8.0
43
+ #### Features
44
+
45
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
46
+ * @applitools/driver bumped to 1.21.0
47
+ #### Features
48
+
49
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
50
+
51
+
52
+
53
+ * @applitools/logger bumped to 2.1.2
54
+
55
+ * @applitools/image bumped to 1.1.18
56
+
57
+ * @applitools/spec-driver-webdriver bumped to 1.2.1
58
+
59
+
3
60
  ## [3.10.7](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.10.6...js/screenshoter@3.10.7) (2025-03-13)
4
61
 
5
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/screenshoter",
3
- "version": "3.10.7",
3
+ "version": "3.11.1",
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.1.17",
60
- "@applitools/logger": "2.1.1",
61
- "@applitools/snippets": "2.6.4",
62
- "@applitools/utils": "1.7.8"
59
+ "@applitools/image": "1.1.18",
60
+ "@applitools/logger": "2.1.2",
61
+ "@applitools/snippets": "2.6.5",
62
+ "@applitools/utils": "1.8.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@applitools/driver": "^1.20.5",
66
- "@applitools/spec-driver-webdriver": "^1.2.0",
65
+ "@applitools/driver": "^1.21.1",
66
+ "@applitools/spec-driver-webdriver": "^1.2.2",
67
67
  "@applitools/test-utils": "^1.5.17",
68
68
  "appium": "^1.22.3",
69
69
  "pixelmatch": "^5.3.0",
@@ -16,7 +16,9 @@ async function takeSimpleScreenshot({
16
16
  const driver = context.driver
17
17
  const takeViewportScreenshot = await makeTakeViewportScreenshot({logger, driver, stabilization, debug})
18
18
 
19
- await utils.general.sleep(wait)
19
+ if (typeof wait === 'function') await wait()
20
+ // using `wait` as a number should not happen with new core versions, but we still support it for backward copatability
21
+ else await utils.general.sleep(wait)
20
22
 
21
23
  const image = await takeViewportScreenshot({captureStatusBar, keepNavigationBar})
22
24
 
@@ -32,7 +32,9 @@ async function takeStitchedScreenshot({
32
32
  const postMoveOffset = await scroller.moveTo(initialOffset)
33
33
  const expectedRemainingOffset = utils.geometry.offsetNegative(initialOffset, postMoveOffset)
34
34
 
35
- await utils.general.sleep(wait)
35
+ if (typeof wait === 'function') await wait()
36
+ // using `wait` as a number should not happen with new core versions, but we still support it for backward copatability
37
+ else await utils.general.sleep(wait)
36
38
 
37
39
  const contentSize = await scroller.getContentSize({lazyLoad})
38
40