回答
检查你的脚本中是否正确使用了UiSelector来定位输入框。例如:
// 确保控件是可编辑的EditText
className("android.widget.EditText").editable(true).findOne();
如果控件嵌套在RecyclerView中,可能需要先滚动定位:
className("android.support.v7.widget.RecyclerView")
  .scrollable()
  .findOne()
  .scrollForward();
确认控件是否存在时,可添加超时机制避免阻塞:
className("android.widget.EditText").findOne(5000);
                ℹ️ 本回答由 AI 生成,内容仅供参考