私はのLinearLayoutを見つけたい、アプリを持っているListViewコントロールを持っている上の 'ロード・アダプタデータ' を実行し、ID = order_untake_jijia_listview_jiaエスプレッソonDataハンドラは、エラーが表示
コードは次のとおりです。
onData(withClassName(endsWith("ListView")))
.inAdapterView(allOf(withId(R.id.order_untake_jijia_listview_ll), hasSibling(withText("9.0"))))
.atPosition(0).onChildView(withId(R.id.order_untake_jijia_listview_jia));
dataInteraction.perform(ViewActions.click());
しかし、私にはエラーがあります:
Error performing 'load adapter data' on view '(with id: com.edaixi:id/order_untake_jijia_listview_ll and has sibling: with text: is "9.0")'.
Caused by: java.lang.RuntimeException: Action will not be performed because the target view does not match one or more of the following constraints:
(is assignable from class: class android.widget.AdapterView and is displayed on the screen to the user)
Target view: "LinearLayout{id=2131493753, res-name=order_untake_jijia_listview_ll, visibility=VISIBLE, width=170, height=50, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=572.0, y=25.0, child-count=3}"
私は "order_untake_jijia_listview_ll"という子を見つけたいと思っていますが、 "order_untake_jijia_listview_jia"という子供がいますが、その父親は.... –
再フォーマットしてください。 –
私はエスプレッソの新しいバージョンでこれはもはや問題ではないと思う。 – 476rick