appium-uiauto
Advanced tools
Comparing version 1.10.1 to 1.10.2
@@ -25,2 +25,3 @@ // Generate a bootstrap for the UIAuto Instruments script containing | ||
autoAcceptAlerts: opts.autoAcceptAlerts, | ||
autoDismissAlerts: opts.autoDismissAlerts, | ||
sendKeyStrategy: opts.sendKeyStrategy, | ||
@@ -27,0 +28,0 @@ }; |
{ | ||
"name": "appium-uiauto", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"description": "appium uiauto ios driver", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -13,2 +13,4 @@ /* global $, env */ | ||
$.acceptAlert(); | ||
} else if (env.autoDismissAlerts && alert.buttons().length > 0) { | ||
$.dismissAlert(); | ||
} | ||
@@ -15,0 +17,0 @@ return true; |
@@ -13,2 +13,3 @@ var env; | ||
this.autoAcceptAlerts = dynamicEnv.autoAcceptAlerts; | ||
this.autoDismissAlerts = dynamicEnv.autoDismissAlerts; | ||
this.sendKeyStrategy = dynamicEnv.sendKeyStrategy; | ||
@@ -15,0 +16,0 @@ }; |
@@ -77,3 +77,3 @@ /* globals $, ERROR */ | ||
this.waitForAlertToClose(alert); | ||
} else if (alert.isNil() && alert.buttons().length > 0) { | ||
} else if (!alert.isNil() && alert.buttons().length > 0) { | ||
alert.buttons()[0].tap(); // first button is dismiss | ||
@@ -80,0 +80,0 @@ this.waitForAlertToClose(alert); |
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
13359803
3766