2

I want to handle these popups and allow whenever the test runs. What capabilities should I set that allows the test to run without interacting with these popups.

enter image description here

Biswajeet gope
  • 321
  • 3
  • 17

2 Answers2

0

If you're using the latest Android Testing Library, then there's GrantPermissionRule that you can use to grant the permissions.

You can use it like:

@Rule public GrantPermissionRule grantPermission = GrantPermissionRule.grant(Manifest.permission.CAMERA);
Vedprakash Wagh
  • 3,595
  • 3
  • 12
  • 33
0

I got the way setting up the capabilities by autoGrantPermissions: true is letting me to allow the popup.

Biswajeet gope
  • 321
  • 3
  • 17