Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Best practices for Robotium, Marshmallow and additional permissions

Jussi Savola Nov 30, 2015 09:29AM CET

What would be be the best way to handle Android OS 6.x system popups for verifying the application access to sensitive permissions?
As the permission verification popup is a system level thingy, accessing the "grant" button from robotium is tricky at best.

Up 0 rated Down
Ville-Veikko Jan 27, 2016 07:28PM CET Testdroid help Agent
Hello,

Depending on what framework you use some of those provide better ways to handle OS notifications/pop-ups. For example with Appium, you can automate the click on those by following steps in this blog:

http://testdroid.com/news/appium-tip-9-how-to-automatically-dismiss-dialogs-and-autoaccept-alerts

Also, you may want to consider image recognition if you notifications or pop-ups are specific ones.

Best regards,
Testdroid Support

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Contact Us

support@bitbar.com
http://assets3.desk.com/
false
bitbar
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete