How did you solve this issue? My uiautomation jar worked well on android-m but on android-n I'm hitting this issue. Any suggestions other than moving the entire thing to uiautomator 2.0 ?
On Thursday, August 1, 2013 at 12:37:05 AM UTC+5:30, Matt Russell wrote: > > I'm using uiautomator directly for a few tests and I keep getting this > weird error when it opens an overflow menu (when you hit menu in an app and > then the more button). For some reason after clicking the more button the > Uiautomator seems to just crash. Here is the result from adb. (this is from > a 4.3 image but it happens in 4.2.2 as well). > > I/QueryController( 3244): Matched selector: UiSelector[TEXT=More] <<==>> > [android.view.accessibility.AccessibilityNodeInfo@32ae7; boundsInParent: > Rect(524222, 0 - 524354, 54); boundsInScreen: Rect(666, 498 - 798, 552); > packageName: com.*****.*****; className: android.widget.TextView; text: > More; contentDescription: null; viewIdResName: android:id/title; checkable: > false; checked: false; focusable: true; focused: false; selected: false; > clickable: true; longClickable: false; enabled: true; password: false; > scrollable: false; [ACTION_FOCUS, ACTION_SELECT, ACTION_CLEAR_SELECTION, > ACTION_CLICK, ACTION_ACCESSIBILITY_FOCUS, > ACTION_NEXT_AT_MOVEMENT_GRANULARITY, > ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY, ACTION_SET_SELECTION]] > D/InteractionController( 3244): clickAndSync(732, 525) > W/InteractionController( 3244): runAndwaitForEvent timedout waiting for > events > E/QueryController( 3244): Got null root node from accessibility - > Retrying... > E/QueryController( 3244): Got null root node from accessibility - > Retrying... > E/QueryController( 3244): Got null root node from accessibility - > Retrying... > E/QueryController( 3244): Cannot proceed when root node is null. Aborted > search > > I also can't use the uiautomator viewer after the crash to view the XML, > it returns an exception. However, if I go back into the app manually and > open up the overflow menu, the viewer works as expected and returns a > ListView. I've tried using a selector for the list view but it fails. > > Any help would be appreciated! > -- 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.
