Tuesday, December 26, 2023
HomeiOS Developmentautomation - Appium: disable native location permission on iOS 17, it...

automation – Appium: disable native location permission on iOS 17, it is now working by any methodology


I am attempting to disable location permission on iOS whereas working appium no answer labored
I attempted

capabilities.setCapability("locationServicesEnabled", false);
 capabilities.setCapability("locationServicesAuthorized", false);
 capabilities.setCapability("autoAcceptAlerts", false);
 capabilities.setCapability("autoGrantPermissions", true);
 capabilities.setCapability("gpsEnabled", false);
 capabilities.setCapability("noReset", false);
 capabilities.setCapability("fullReset", "false");

And in addition by detect aspect and click on ‘Do not enable’ by this command

`driver.setSetting("acceptAlertButtonSelector", "**/XCUIElementTypeButton[label == 'Don't Allow']");`

interacting with ‘Do not enable’ button did not work in the meantime it clicked on ‘Exact:on/off’
location native element



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments