@applitools/screenshoter
Advanced tools
Comparing version 3.6.0 to 3.6.1
{ | ||
"name": "@applitools/screenshoter", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Applitools universal screenshoter for web and native applications", | ||
@@ -51,4 +51,4 @@ "keywords": [ | ||
"test:e2e:web": "mocha ./test/e2e/web/*.spec.js --no-timeouts -r @applitools/test-utils/mocha-hooks/docker", | ||
"test:e2e:android": "APPLITOOLS_TEST_REMOTE=sauce mocha ./test/e2e/android*/*.spec.js --no-timeouts --parallel --jobs ${MOCHA_JOBS:-2}", | ||
"test:e2e:ios": "APPLITOOLS_TEST_REMOTE=sauce mocha ./test/e2e/ios*/*.spec.js --no-timeouts --parallel --jobs ${MOCHA_JOBS:-2}", | ||
"test:e2e:android": "APPLITOOLS_TEST_REMOTE=sauce mocha ./test/e2e/android*/*.spec.js --no-timeouts --parallel --jobs ${MOCHA_JOBS:-3}", | ||
"test:e2e:ios": "APPLITOOLS_TEST_REMOTE=sauce mocha ./test/e2e/ios*/*.spec.js --no-timeouts --parallel --jobs ${MOCHA_JOBS:-4}", | ||
"setup": "yarn setup:web", | ||
@@ -77,3 +77,3 @@ "setup:web": "yarn docker:setup", | ||
"@applitools/image": "1.0.2", | ||
"@applitools/logger": "1.1.24", | ||
"@applitools/logger": "1.1.25", | ||
"@applitools/snippets": "2.4.5", | ||
@@ -86,5 +86,5 @@ "@applitools/utils": "1.3.12", | ||
"@applitools/bongo": "^2.2.0", | ||
"@applitools/driver": "^1.10.3", | ||
"@applitools/scripts": "^1.1.0", | ||
"@applitools/spec-driver-webdriverio": "^1.3.0", | ||
"@applitools/driver": "^1.10.4", | ||
"@applitools/scripts": "^1.2.0", | ||
"@applitools/spec-driver-webdriverio": "^1.3.1", | ||
"@applitools/test-utils": "^1.5.1", | ||
@@ -91,0 +91,0 @@ "appium": "^1.22.3", |
@@ -10,3 +10,3 @@ const utils = require('@applitools/utils') | ||
return makeTakeNativeScreenshot(options) | ||
} else if (driver.isIOS || driver.isWebView) { | ||
} else if ((!driver.isEmulation && driver.isIOS) || driver.isWebView) { | ||
// safari on ios takes screenshot with browser and os interfaces | ||
@@ -32,3 +32,3 @@ return makeTakeMarkedScreenshot(options) | ||
return async function takeScreenshot({name} = {}) { | ||
logger.verbose('Taking screenshot...') | ||
logger.verbose('Taking screenshot (default)...') | ||
const image = makeImage(await driver.takeScreenshot()) | ||
@@ -50,3 +50,3 @@ await image.debug({...debug, name, suffix: 'original'}) | ||
return async function takeScreenshot({name} = {}) { | ||
logger.verbose('Taking screenshot...') | ||
logger.verbose('Taking screenshot (with forced main context)...') | ||
const originalContext = driver.currentContext | ||
@@ -105,3 +105,3 @@ await driver.mainContext.focus() | ||
if (stabilization.rotate) image.rotate(stabilization.rotate) | ||
else if (driver.orientation.startsWith('landscape') && image.width < image.height) image.rotate(-90) | ||
else if (driver.orientation?.startsWith('landscape') && image.width < image.height) image.rotate(-90) | ||
@@ -133,3 +133,3 @@ if (stabilization.crop) image.crop(stabilization.crop) | ||
if (stabilization.rotate) image.rotate(stabilization.rotate) | ||
else if (driver.orientation.startsWith('landscape') && image.width < image.height) image.rotate(-90) | ||
else if (driver.orientation?.startsWith('landscape') && image.width < image.height) image.rotate(-90) | ||
@@ -136,0 +136,0 @@ await image.debug({...debug, name: 'marker'}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52300
+ Added@applitools/logger@1.1.25(transitive)
+ Added@applitools/types@1.5.18(transitive)
- Removed@applitools/logger@1.1.24(transitive)
- Removed@applitools/types@1.5.17(transitive)
Updated@applitools/logger@1.1.25