I have a list where I have to mark the first item called “MULTA”. XClick should mark the first item from left to right and top to bottom. But it does not do this. I have tried with visualSearch and # 1 is also not the first one on the left and top.
Is there a way to know if it is the top item?
This is a very good question. The answer is that it depends whether or not you add #1 (or #2, #3,…) to your image name:
Without #1 (e.g. XClick | image.png) UIVision sorts after best match. So if the 3rd checkbox in this list happen to be a slightly better match than the others, it will be number 1 in the order.
With #1 added (e.g. XClick | image.png#1) UIVision treats all matches above the confidence level as equal. It sorts as top/left to bottom/right. So if the 3rd checkbox in this list happen to be a slightly better match than the others, it will still be number 3 in the order. So this is what you need.