Espresso - typeText not working

前端 未结 10 1083
名媛妹妹
名媛妹妹 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:49

    for me I was annotated my test method with @UiThreadTest. I removed that and it solved.

提交回复
热议问题