Open ciscox83 opened 9 years ago
You should be able to use solo.clickOnText or solo.clickOnView to click it.
On Thu, Sep 24, 2015 at 8:46 AM, Christian Sisti notifications@github.com wrote:
http://stackoverflow.com/questions/22746664/robotium-chose-an-account-in-accoutpicker-with-solo
— Reply to this email directly or view it on GitHub https://github.com/RobotiumTech/robotium/issues/782.
Not sure if that is the solution. We don't have a text neither a view to pass as an input.
Just to clarify I am speaking about this:
Intent pickContactIntent =
new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(pickContactIntent,REQUEST_PICK_CONTACT);
This will display a dialog from where we can choose an account (or add a new one).
Or better, for handling this
final Intent accountPickerIntent =
AccountPicker.newChooseAccountIntent(null, null, new String[]{"com.google"}, false, null, null, null, null);
I would expect something like:
solo.setAccountPicker(accountPickerIntent, ...
http://stackoverflow.com/questions/22746664/robotium-chose-an-account-in-accoutpicker-with-solo