@applitools/screenshoter 3.5.0 → 3.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/screenshoter",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Applitools universal screenshoter for web and native applications",
5
5
  "keywords": [
6
6
  "applitools",
@@ -80,11 +80,11 @@
80
80
  "png-async": "0.9.4"
81
81
  },
82
82
  "devDependencies": {
83
- "@applitools/bongo": "^2.1.6",
84
- "@applitools/driver": "^1.9.23",
83
+ "@applitools/bongo": "^2.2.0",
84
+ "@applitools/driver": "^1.9.25",
85
85
  "@applitools/scripts": "^1.1.0",
86
86
  "@applitools/spec-driver-webdriverio": "^1.2.19",
87
- "@applitools/test-utils": "^1.5.0",
87
+ "@applitools/test-utils": "^1.5.1",
88
88
  "appium": "^1.22.3",
89
89
  "chromedriver": "^101.0.0",
90
90
  "eslint": "^8.16.0",
package/src/scroller.js CHANGED
@@ -37,8 +37,8 @@ function makeScroller({logger, element, scrollingMode = 'mixed'}) {
37
37
  if (scrollingMode === 'mixed+') return getShiftOffset(element)
38
38
  }
39
39
 
40
- async function getContentSize() {
41
- const size = await element.getContentSize()
40
+ async function getContentSize(options) {
41
+ const size = await element.getContentSize(options)
42
42
  return size
43
43
  }
44
44
 
@@ -22,6 +22,7 @@ async function takeScreenshot({
22
22
  hooks,
23
23
  debug,
24
24
  logger,
25
+ lazyLoad,
25
26
  }) {
26
27
  debug =
27
28
  debug ||
@@ -81,6 +82,7 @@ async function takeScreenshot({
81
82
  stabilization,
82
83
  debug,
83
84
  logger,
85
+ lazyLoad,
84
86
  })
85
87
  : await takeSimpleScreenshot({...target, withStatusBar, wait, stabilization, debug, logger})
86
88
 
@@ -14,6 +14,7 @@ async function takeStitchedScreenshot({
14
14
  wait,
15
15
  stabilization,
16
16
  debug,
17
+ lazyLoad,
17
18
  }) {
18
19
  logger.verbose('Taking full image of...')
19
20
 
@@ -30,7 +31,7 @@ async function takeStitchedScreenshot({
30
31
 
31
32
  await utils.general.sleep(wait)
32
33
 
33
- const contentSize = await scroller.getContentSize()
34
+ const contentSize = await scroller.getContentSize({lazyLoad})
34
35
 
35
36
  logger.verbose(
36
37
  'preMoveOffset',