Robotium & system dialogs

0
0

When I try to pair with Bluetooth device, system confirmation dialog with PIN appears. There are buttons “Cancel” and “OK”. But I can’t click them with Robotium. How can I work with Android OS dialogs in Robotium?
Thanks.

  • You must to post comments
0
0

This works for me:

solo.clickOnView(solo.getView(android.R.id.button1)); 

where the ‘Positive’ button is android.R.id.button1, the ‘Negative’ button is android.R.id.button2 and ‘Neutral’ is android.R.id.button3.

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website