I am writing automated testing code (using *ActivityInstrumentationTestCase2
*) to test an app that involves in-app billing version 2 (subscriptions). I 
need help on figuring out how to programmatically get my testing code to 
click on the "Accept and Buy" button that appears inside the "*Pay with 
credit card/Secured by Google Wallet*" dialog which is supposedly created 
by some Google SDK code.

I can get the testing code to click on other buttons that are created by my 
own code/acitivty, usually by accessing the buttons from its parent 
activity or view, and then call the .performClick() method on the button. 
But this "Buy" button is not reachable from any activities and impossible 
to get a handle to.

It appears this dialog may be created by 
com.google.android.finsky.activities.IabActivitybased on the logcat output. 
I used an ActivityMonitor watching this activity, but it was never 
triggered. If you can help either directly, or point me to the relevant 
Google SDK source code that's responsible for creating the "Pay with credit 
card" dialog or the source for the
com.google.android.finsky.activities.IabActivity class, I'd be very 
grateful.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to