How do I handle alerts in an Android web application using Appium server (1.0.1) and the Android SDK?
The below code is not working on android:
drive
Please use the below code, Add some wait before clicking on OK Button. After that pass the xpath of you OK Button.
synchronized (driver) { driver.wait(2000); } driver.context(NATIVE_APP); driver.findElementByXPath{("//android.widget.Button[@resourceid= ‘android:id/button1’]").click();