简体   繁体   中英

How to Click on item of recycler view using robotium

我有Robotium 5.4,但我不知道如何在android的Recycler视图中单击某个项目。

For me worked method clickInRecyclerView(int itemIndex).

From source code:

/** * Clicks the specified item index and returns an ArrayList of the TextView objects that
* the item index is displaying. Will use the first RecyclerView it finds.
*
* @param itemIndex the item index to click
* @return an {@code ArrayList} of the {@linkTextView} objects located in the item index */

public ArrayList clickInRecyclerView(int itemIndex) {

Upgrade your existing Robotium version to 5.5.3 - the latest release. It has the feature to scroll RecyclerView . Visit here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM