Closed automaticqa closed 4 years ago
Hi there and thanks for reaching out!
isDescendantOfA {}
in Kakao's ViewBuilder
takes lambda with receiver of another ViewBuilder
as argument, so inside of this lambda you need to match the descendant view with Kakao's functions.
You are free to use the actual ViewMatchers.isDescendantOfA()
from Espresso through withMatcher()
function of Kakao.
In your case when you call your function that returns Matcher<View>
inside of Kakao's isDescendantOfA {}
lambda it literally does nothing. If you have custom matcher it should look like that:
KTextView {
isDescendantOfA { withMatcher(getMyMatcher()) }
}
Hey guys! I have to get KTextView which is located in focused ancestor. I've written next method:
and here i get such exception:
However next implementation works clear:
Why is it happening? Are there any differences between
and