Can't click Allow button in permission dialog in Android using Appium

后端 未结 5 1798
予麋鹿
予麋鹿 2021-02-08 21:30

I am unable to tap on Deny or Allow buttons on the permissions dialog in Android using Appium+Java. Do I need to add any capabilities before going to tap on those buttons? Below

5条回答
  •  孤街浪徒
    2021-02-08 22:09

    Use full resource ID ...It worked for me....

    below line worked for me.... driver.findElement(MobileBy.id("com.android.packageinstaller:id/permission_allow_button")).click();

提交回复
热议问题