@applitools/driver
Advanced tools
Comparing version 1.11.51 to 1.11.52
@@ -31,3 +31,5 @@ "use strict"; | ||
} | ||
else if (environment.isIOS && !/mobilesafari/i.test(capabilities.CFBundleIdentifier)) { | ||
else if (environment.isIOS && | ||
capabilities.CFBundleIdentifier && | ||
!/mobilesafari/i.test(capabilities.CFBundleIdentifier)) { | ||
environment.browserName = undefined; | ||
@@ -34,0 +36,0 @@ environment.isNative = true; |
@@ -680,4 +680,4 @@ "use strict"; | ||
const requiredWindowSize = { | ||
width: currentWindowSize.width + (requiredViewportSize.width - currentViewportSize.width), | ||
height: currentWindowSize.height + (requiredViewportSize.height - currentViewportSize.height), | ||
width: Math.max(0, currentWindowSize.width + (requiredViewportSize.width - currentViewportSize.width)), | ||
height: Math.max(0, currentWindowSize.height + (requiredViewportSize.height - currentViewportSize.height)), | ||
}; | ||
@@ -684,0 +684,0 @@ this._logger.log(`Attempt #${attempt} to set viewport size by setting window size to`, requiredWindowSize); |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.11.51", | ||
"version": "1.11.52", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
247035
4080