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

@applitools/screenshoter

Package Overview
Dependencies
Maintainers
57
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.9.5 to 3.10.0

17

CHANGELOG.md
# Changelog
## [3.10.0](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.9.5...js/screenshoter@3.10.0) (2024-11-12)
### Features
* add an option to keep the navigation bar for android devices ([#2608](https://github.com/Applitools-Dev/sdk/issues/2608)) ([e7647e0](https://github.com/Applitools-Dev/sdk/commit/e7647e0105a7aa47e6bf3b20ab033f1e389ca849))
### Dependencies
* @applitools/driver bumped to 1.20.0
#### Features
* add an option to keep the navigation bar for android devices ([#2608](https://github.com/Applitools-Dev/sdk/issues/2608)) ([e7647e0](https://github.com/Applitools-Dev/sdk/commit/e7647e0105a7aa47e6bf3b20ab033f1e389ca849))
* @applitools/spec-driver-webdriver bumped to 1.1.20
## [3.9.5](https://github.com/Applitools-Dev/sdk/compare/js/screenshoter@3.9.4...js/screenshoter@3.9.5) (2024-11-07)

@@ -4,0 +21,0 @@

6

package.json
{
"name": "@applitools/screenshoter",
"version": "3.9.5",
"version": "3.10.0",
"description": "Applitools universal screenshoter for web and native applications",

@@ -65,4 +65,4 @@ "keywords": [

"devDependencies": {
"@applitools/driver": "^1.19.7",
"@applitools/spec-driver-webdriver": "^1.1.19",
"@applitools/driver": "^1.20.0",
"@applitools/spec-driver-webdriver": "^1.1.20",
"@applitools/test-utils": "^1.5.17",

@@ -69,0 +69,0 @@ "appium": "^1.22.3",

@@ -18,2 +18,3 @@ const {makeLogger} = require('@applitools/logger')

captureStatusBar,
keepNavigationBar,
overlap,

@@ -105,3 +106,3 @@ framed,

})
: await takeSimpleScreenshot({...target, captureStatusBar, wait, stabilization, debug, logger})
: await takeSimpleScreenshot({...target, captureStatusBar, keepNavigationBar, wait, stabilization, debug, logger})

@@ -108,0 +109,0 @@ const viewport = await driver.getViewport()

const utils = require('@applitools/utils')
const makeTakeViewportScreenshot = require('./take-viewport-screenshot')
async function takeSimpleScreenshot({context, region, captureStatusBar, wait, stabilization, debug = {}, logger}) {
async function takeSimpleScreenshot({
context,
region,
captureStatusBar,
keepNavigationBar,
wait,
stabilization,
debug = {},
logger,
}) {
logger.verbose('Taking image of...')

@@ -12,3 +21,3 @@

const image = await takeViewportScreenshot({captureStatusBar})
const image = await takeViewportScreenshot({captureStatusBar, keepNavigationBar})

@@ -15,0 +24,0 @@ if (region) {

@@ -153,5 +153,5 @@ const utils = require('@applitools/utils')

function makeTakeNativeScreenshot({driver, stabilization = {}, debug, logger}) {
return async function takeScreenshot({name, captureStatusBar} = {}) {
return async function takeScreenshot({name, captureStatusBar, keepNavigationBar} = {}) {
logger.verbose('Taking native driver screenshot...')
const viewport = await driver.getViewport()
const viewport = await driver.getViewport({keepNavigationBar})
const image = makeImage(await driver.takeScreenshot())

@@ -158,0 +158,0 @@ await image.debug({...debug, name, suffix: 'original'})

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