Friday 17 March 2017

Cannot Dismiss Native iOS Alerts with WebDriverJS

This one has got me stumped, and I have googled around like crazy with no results...

I am trying to use WebDriverJS with Node, against an iOS simulator and Appium 1.6.x. but the site I am testing against uses location services. According to documentation and the community, to press the location services modal that appears, that says "Allow "Safari" to access your location while you use this app?", I need to use "driver.switchTo().alert()".

I have tried this, even with delays, and no luck. I can visibly see the alert open, wait a few seconds, and then run the command with NoSuchAlertError returned.

Any ideas? Does driver.switchTo().alert() not cover this alert?



via jank cat

No comments:

Post a Comment