Appium v1.6.4-beta
Xcode 8.2
macOs Sierra 10.12
I want to automate to save photo in my device.
But in first time I have to give permission.
I have used “accept alert”, but cannot accept the alert for allow to access the photo library.
It shows the test passed in green , when I execute the test, but this popup still appear in view and photo is not saved.
This is my script
//Check clear
driver.findElement(By.id("Save")).click();
driver.switchTo().alert().accept();
Capabilities also used ,
capabilities.setCapability("autoAcceptAlerts", true);
This is what I want to allow
But with script it does not get done, and photo is not saved.
Alert remains on the screen after app closed.
But shows passed test in eclipce.