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.
Asked
Active
Viewed 152 times
2 Answers
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,108
- 2
- 7
- 31
0
I got the way setting up the capabilities by
autoGrantPermissions: true is letting me to allow the popup.
Biswajeet gope
- 301
- 2
- 15