@applitools/screenshoter 3.10.6 → 3.11.0

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,43 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.11.0](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.10.7...js/screenshoter@3.11.0) (2025-03-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/utils bumped to 1.8.0
14
+ #### Features
15
+
16
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
17
+ * @applitools/driver bumped to 1.21.0
18
+ #### Features
19
+
20
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
21
+
22
+
23
+
24
+ * @applitools/logger bumped to 2.1.2
25
+
26
+ * @applitools/image bumped to 1.1.18
27
+
28
+ * @applitools/spec-driver-webdriver bumped to 1.2.1
29
+
30
+
31
+ ## [3.10.7](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.10.6...js/screenshoter@3.10.7) (2025-03-13)
32
+
33
+
34
+ ### Dependencies
35
+
36
+ * @applitools/spec-driver-webdriver bumped to 1.2.0
37
+ #### Features
38
+
39
+ * support HTTPS_PROXY and HTTP_PROXY environment variables ([#2795](https://github.com/Applitools-Dev/sdk/issues/2795)) ([226ae08](https://github.com/Applitools-Dev/sdk/commit/226ae08627381a1212df8b938c6576e82c777914))
40
+
3
41
  ## [3.10.6](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.10.5...js/screenshoter@3.10.6) (2025-02-26)
4
42
 
5
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/screenshoter",
3
- "version": "3.10.6",
3
+ "version": "3.11.0",
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",
59
+ "@applitools/image": "1.1.18",
60
+ "@applitools/logger": "2.1.2",
61
61
  "@applitools/snippets": "2.6.4",
62
- "@applitools/utils": "1.7.8"
62
+ "@applitools/utils": "1.8.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@applitools/driver": "^1.20.5",
66
- "@applitools/spec-driver-webdriver": "^1.1.26",
65
+ "@applitools/driver": "^1.21.0",
66
+ "@applitools/spec-driver-webdriver": "^1.2.1",
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