Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/screenshoter

Package Overview
Dependencies
Maintainers
33
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/screenshoter - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

14

package.json
{
"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'})

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc