package Ġcom . a ag ata ev . espress o _ page _ object . recyclerview Ċ Ċ import Ġandroid . view . View Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġandroidx . test . espress o . contrib . RecyclerView Actions Ċ import Ġcom . a ag ata ev . espress o _ page _ object . extensions . execute Ċ import Ġorg . hamcrest . Matcher Ċ Ċ class ĠRecyclerView Item Matching Executor ( ĊĠĠĠ Ġprivate Ġval Ġre cyclerView Matcher : ĠMatcher < View >, ĊĠĠĠ Ġprivate Ġval ĠitemView Matcher : ĠMatcher < View > Ċ ) Ġ: ĠRecyclerView Item Executor Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġscroll To Item () Ġ{ ĊĠĠĠĠĠĠĠ Ġre cyclerView Matcher . execute ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠRecyclerView Actions . scrollTo < RecyclerView . ViewHolder >( item View Matcher ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Matcher (): ĠMatcher < View > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwith RecyclerView ( re cyclerView Matcher ). at Item ( item View Matcher ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Child Matcher ( child Matcher : ĠMatcher < View >): ĠMatcher < View > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwith RecyclerView ( re cyclerView Matcher ). at Item Child ( item View Matcher , Ġchild Matcher ) ĊĠĠĠ Ġ} Ċ }