Hot to say to the autotest, to swipe element using their color/form

I have a game, for example. Three in a row.
Screenshot below


Every time you can have different combination on the field. I mean its always different map, and I can’t just use permament coordinates for swipe.
How to say in my code, that it needs to find element, which are possible for swipe, to finish the level?

Open game on uiautomatorviewer and see if any of those elements are uniquely identifiable.

Often those games use webview so, if you cannot identify those elements, explore the following thread:

1 Like

How to set setEnabled true in ionic 2.