Same here wasted 2 days...

Even "*uiautomatorviewer*" does not show ant resource id unlike spinner.
I am also not able to get the child view of the *AutoCompleteTextView.*

On Tuesday, July 9, 2013 1:19:39 AM UTC+5:30, Guang Zhu wrote:
>
> Hi Alan,
>
> I haven't explicitly tried the auto complete prompts with UI Automator 
> viewer before. It's possible that accessibility framework does not yet 
> include them in the accessibility information exposed for a given view. 
> I'll need to take a closer look.
>
> Thanks,
> Guang Zhu 
>
>
> On Mon, Jun 17, 2013 at 2:25 AM, Alan Cooke <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> I am currently investigating if it is possible to carry out complete 
>> Automated UI tests for Android.  I have been using UIAutomator and for the 
>> most part find it great.
>>
>> However I have hit a small problem with a standard Android widget 
>> AutoCompleteTextView.  When the automation runs and enters the text into 
>> the TextView, prompts or options are presented.
>>
>> I have tried evaluating these at runtime using hierarchyviewer at 
>> runtime, however nothing is presented within it.
>>
>> I was wondering if anyone had any work arounds or hints as to a solution, 
>> for the moment, I am blocked by this.
>>
>> XML Definition of view:
>>
>> <AutoCompleteTextView 
>>
>> android:id="@+id/autocomp" 
>>
>> android:layout_width="fill_parent" 
>>
>> android:layout_height="wrap_content" 
>>
>> android:layout_below="@+id/title_bar" 
>>
>> android:layout_toLeftOf="@+id/new_user_button" 
>>
>> android:background="@drawable/search_bg" 
>>
>> android:paddingLeft="20dip" 
>>
>> android:paddingTop="10dip" 
>>
>> android:layout_margin="0dip" 
>>
>> android:singleLine="true" 
>>
>> android:hint="@string/user_name_hint" 
>>
>> android:dropDownAnchor="@+id/autocomp" 
>>
>> android:completionThreshold="2" 
>>
>> android:textColor="@color/dark_text" 
>>
>> android:cacheColorHint="@color/transparent" 
>>
>> android:dropDownSelector="@color/white" />
>>
>> Screen shot of output from Hierarchy Viewer:
>>
>>
>> <https://lh3.googleusercontent.com/-U8hW6eH9Afg/Ub7VzahbBEI/AAAAAAAAAOM/DYMAZl9Awcs/s1600/Screen+Shot+2013-06-17+at+10.18.33.png>
>>
>>
>>
>> The EditText referenced by "test" is the where the text has been entered, 
>> two results have been displayed however I can't see them in the output.
>>
>> Any help would be great.
>>
>> Cheers Alan
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Guang Zhu
> Android Test Engineering
> Google Inc.
>
> Please keep all discussions on related Google Groups, no direct emails. 
> Thanks!
>  

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to