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