please refer the above image, i want to click particular ui element on a windows application. the click activity doesn’t seem to work as the address(IDX value is dynamic everytime ) without the idx the click activity doesn’t seem to validate.
so i have used click image for clicking the particular element, even that is throwing an error saying there is no image detected.
Image automation should be used only if no other methods works.
In case of selector always try to avoid using idx , by adding more parameters in selectors like aaname, innertext, parentid(if nothing else is there) etc.
Also if the application you working on is a legacy , you can try changing the type of Ui Frameworks to Active Accessibility and then try creating or generating the selector.