How to handle "Open this page in iTunes ?" pop up in Safari browser in iPad using Appium?


#1

Safari browser is showing “Open this page in iTunes ?” pop up. It is not a alert box and unable to identify object in DOM also. Can you please let me know how to handle this pop up in Safari browser ?

                             DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
                             desiredCapabilities.setCapability("platformName", "iOS");
			desiredCapabilities.setCapability("platformVersion", version);
			desiredCapabilities.setCapability("deviceName", deviceName);
			desiredCapabilities.setCapability("udid", deviceName);
			desiredCapabilities.setCapability("automationName", "XCUITest");
			desiredCapabilities.setCapability("browserName", "Safari");
			desiredCapabilities.setCapability("startIWDP", true);
			desiredCapabilities.setCapability("udid", "auto");
                           driver = new  IOSDriver( new URL(appiumURL), desiredCapabilities);