Updating an EditText with Espresso

前端 未结 5 1557
慢半拍i
慢半拍i 2020-12-30 19:00

I\'m attempting to update an EditText as part of an Espresso test with:

onView(allOf(withClassName(endsWith(\"EditText\")), withText(is(\"Test\"         


        
5条回答
  •  误落风尘
    2020-12-30 19:35

    To set value in EditText with Espresso simple like this

    onView(withId(R.id.yourIdEditText)).perform(typeText("Your Text"))

提交回复
热议问题