I am trying to check what paint flags a view currently has during an instrumented test. I am trying to do this by accessing the view during the test and then looking at its paint flags. I have tried
val view = onView(withText("kitchen"))
but this creates a view interaction. I have seen other similar questions suggest using activityRule.activity.findViewById()
but the views do to have IDs as they are created programmatically.