mirror of
https://github.com/appium/appium.git
synced 2026-02-12 21:10:10 -06:00
2
lib/devices/ios/uiauto/bootstrap.js
vendored
2
lib/devices/ios/uiauto/bootstrap.js
vendored
@@ -15,7 +15,7 @@ var cmd = getFirstCommand();
|
||||
var bootstrapSettings = {};
|
||||
|
||||
UIATarget.onAlert = function(alert) {
|
||||
if (alert.name() && alert.name().indexOf("attempting to open a pop-up")) {
|
||||
if (alert.name() && alert.name().indexOf("attempting to open a pop-up") !== -1) {
|
||||
alert.defaultButton().tap();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user