Hi there, I’ve been using UI Vision to create macros for a couple of weeks and have started to develop some great timesavers on projects I’m working on.
I’m a little stuck theoretically on how to approach a problem I have.
In my macro, I iterate through a set of table rows and perform a set of actions in each loop. However, in this table row, there is a small SVG icon (a checkmark or cross) which tells me whether I should be performing the action for any given row.
So far, i’ve managed to identify whether the icon is a checkmark or cross by using the VisualSearch / Assert functions. However, as I want to check dynamically in each table row itself, I was wondering how I would best approach writing an if statement within a particular table element only.
I.e, if the checkbox image exists in a particular (nth) table row div element, then execute this function.
Maybe I’m missing something obvious but any theoretical pointers would be appreciated.