Espresso - typeText not working

前端 未结 10 1300
名媛妹妹
名媛妹妹 2021-02-13 22:20

I\'m trying to type some text inside an EditText:


    public void testSearch() {
          onView(withId(R.id.titleInput)).perform(typeText(\"Engineer\"));
          


        
10条回答
  •  温柔的废话
    2021-02-13 22:33

    I fixed this issue by setting layout_height="wrap_content" on the View I wanted to click(). Maybe it can help someone here.

提交回复
热议问题