Click on an element by index #389
-
Hi, I have a view that contains one to many views with the same ids, and with barista, I cannot figure out a way of accessing a particular element by its index. For example, my screen contains three boarding passes that I swipe to check elements on these cards. The only workaround that I have found so far is to create my own
This does serve my purpose, however, I wondered if there was something I was missing with Barista that I could leverage? Otherwise, i'd have to create functions for Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello @ianrhamilton! |
Beta Was this translation helpful? Give feedback.
Hello @ianrhamilton!
Do your items contain different texts? Do you know their text?
In that case, you could use
clickOn("Boarding pass 1")
instead of the view id.