KakaoCup / Kakao

Nice and simple DSL for Espresso in Kotlin

Home Page:https://kakaocup.github.io/Kakao/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

childAt api is not working in recyclerview test

TheReprator opened this issue · comments

Hi Team,

whenever i am checking for particular position in a recyclerview, it's throwing me below error, as follows,

Exception:
androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (is descendant of a: (view holder at 7 position of recycler view: (with id is reprator.wipro.factlist.test:id/factListRecyclerView)) and with id is <2131230883>)

View Hierarchy:
+>DecorView{id=-1, visibility=VISIBLE, width=720, height=1600, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params={(0,0)(fillxfill) blurRatio=1.0 blurMode=0 ty=BASE_APPLICATION wanim=0x10302fe
fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
pfl=FORCE_DRAW_STATUS_BAR_BACKGROUND}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3}

Although, i am using kaspresso but internally it's using kakao for uI testing, and even for simple kakao testing, it will fail. So need your assistance.

Repository: https://github.com/TheReprator/Wipro/blob/recycler_scroll_error/appModules/factList/src/androidTest/kotlin/reprator/wipro/factlist/test/FactListKaspressoTest.kt

Test Name: childAtPosition7

Looking forward for a solution.

Regards,
Vikram Singh