Reputation: 373
i have a problem about robotium. I can click my custom dialog view's ok and cancel buttons. But in system dialog, solo can not find ok, cancel buttons, texts or any view in dialog. How can i solve this problem?
Created Dialog code is below:
Uri uri = Uri.fromParts("package", bean.packageName, null);
Intent intent = new Intent(Intent.ACTION_DELETE, uri);
context.startActivity(intent);
Upvotes: 0
Views: 529
Reputation: 3472
Robotium can only access views that belong to your application, for example it can't interact with the Notification Bar's views. Since you're not creating a dialog, you're starting an intent that causes the system to create a dialog, you can't access those views.
Upvotes: 1