Appium/wdio - unable to dismiss location permissions alert on Android

前端 未结 2 592
迷失自我
迷失自我 2020-12-20 01:16

I\'m using webdriver.io to write a suite of Appium tests for a hybrid Cordova App.

\"appium\": \"^1.10.0\",
\"wdio-appium-service\": \"^0.2.3\",
\"wdio-jasmi         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 01:51

    1. The permission dialog is native, so you don't need to switch to the webview to dismiss it.
    2. There is an android id associated with the allow/deny permission button, so you can use that instead of the identifier you have used.

    The id for allow button is: com.android.packageinstaller:id/permission_allow_button .
    The id for deny button is: com.android.packageinstaller:id/permission_deny_button

提交回复
热议问题