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

后端 未结 5 1826
予麋鹿
予麋鹿 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:16

    Starting from appium 1.6.3 you can just add:

    capabilities.setCapability("autoGrantPermissions", "true");
    

    And you'll always allow all permissions your app wants.

提交回复
热议问题