Espresso: how to scroll to the bottom of ScrollView

后端 未结 4 1100
渐次进展
渐次进展 2021-02-05 05:50

How is it possible to scroll down to the bottom of ScrollView in Espresso test? Thanks!

4条回答
  •  深忆病人
    2021-02-05 06:07

    for me when using nestedScrollview i just swipeUp (if you want to go down)..here is an example call:

    onView(withId(R.id.nsv_container))
                    .perform(swipeUp());
    

提交回复
热议问题