@applitools/screenshoter
Advanced tools
Comparing version 3.3.17 to 3.3.18
{ | ||
"name": "@applitools/screenshoter", | ||
"version": "3.3.17", | ||
"version": "3.3.18", | ||
"description": "Applitools universal screenshoter for web and native applications", | ||
@@ -64,3 +64,3 @@ "keywords": [ | ||
"@applitools/snippets": "2.2.3", | ||
"@applitools/utils": "1.2.14", | ||
"@applitools/utils": "1.3.0", | ||
"png-async": "0.9.4" | ||
@@ -70,6 +70,6 @@ }, | ||
"@applitools/bongo": "^2.0.3", | ||
"@applitools/driver": "1.7.1", | ||
"@applitools/driver": "1.8.2", | ||
"@applitools/scripts": "1.1.0", | ||
"@applitools/spec-driver-webdriverio": "1.2.8", | ||
"@applitools/test-utils": "1.3.1", | ||
"@applitools/spec-driver-webdriverio": "1.2.9", | ||
"@applitools/test-utils": "1.3.2", | ||
"appium": "^1.22.2", | ||
@@ -76,0 +76,0 @@ "chromedriver": "^95.0.0", |
@@ -1,27 +0,3 @@ | ||
'use strict' | ||
const utils = require('@applitools/utils') | ||
function isNavigationBar(region) { | ||
if ( | ||
(region.value && region.value.includes(`type == "XCUIElementTypeNavigationBar"`)) || | ||
(region.selector && region.selector.includes(`type == "XCUIElementTypeNavigationBar"`)) | ||
) { | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
function isTabBar(region) { | ||
if ( | ||
(region.value && region.value.includes('type == "XCUIElementTypeTabBar"')) || | ||
(region.selector && region.selector.includes(`type == "XCUIElementTypeTabBar"`)) | ||
) { | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
async function getTarget({window, context, region, fully, scrollingMode}) { | ||
@@ -66,7 +42,5 @@ if (window) { | ||
const scrollingElement = await context.getScrollingElement() | ||
const navBar = isNavigationBar(region) | ||
const tabBar = isTabBar(region) | ||
return { | ||
context: elementContext, | ||
region: await element.getRegion(navBar || tabBar), | ||
region: await element.getRegion(), | ||
scrollingElement, | ||
@@ -73,0 +47,0 @@ } |
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
69149
1251
+ Added@applitools/utils@1.3.0(transitive)
- Removed@applitools/utils@1.2.14(transitive)
Updated@applitools/utils@1.3.0