0

I'm using Appium and WebdriverIO to test Android device. But I couldn't use alertAccept() because it is not implemented in Appium 1.7.1, to click on "OK" button on Alert Message. How to close alert message ? May be there another ways to solve this problem.

piet.t
  • 11,718
  • 21
  • 43
  • 52

1 Answers1

0

Alert butts are inspectable on Android and they would have a locator similar to this:

  • ID: com.android.packageinstaller:id/permission_allow_button
  • XPath: //android.widget.Button[@resource-id='com.android.packageinstaller:id/permission_allow_button']

P.S. The above are for the accept/ok button. The reject/cancel button would have a locator with permission_deny_button instead of permission_allow_button

Hassan Radi
  • 936
  • 10
  • 22