寻找一种方法将文本或类型文本替换为嵌入在 TextInputLayout 中的编辑文本。
我已经尝试了一些这样的事情:
perform(ViewActions.typeTextIntoFocusedView("String"));
但我总是以这个结束:
java.lang.RuntimeException: Action will not be performed because the target view does not match one or more of the following constraints:
(((is displayed on the screen to the user) and has focus on the screen to the user) and (supports input methods or is assignable from class: class android.widget.SearchView))