Identifying elements in a context menu
Posted: Thu Jan 31, 2019 6:06 pm
I am struggling to uniquely identify items in a context menu.
I have the technique down to delay tracking, and can effectively look at all of the elements in my context menu. However, every item in the menu is simply 'MenuItem', and I cannot seem to find any uniquely identifiable attribute. Currently, Ranorex just uses 'contextmenu/menuitem[1]'
Here is a picture of the context menu:
As you can see, each item in the context menu has a different text.
However, if you look at the elements in Spy, there are no references to the text in the context menu. See attached snapshot.
Is there something I am missing, or is there no way to uniquely identify the elements in this custom context menu, other than image-based?
I have the technique down to delay tracking, and can effectively look at all of the elements in my context menu. However, every item in the menu is simply 'MenuItem', and I cannot seem to find any uniquely identifiable attribute. Currently, Ranorex just uses 'contextmenu/menuitem[1]'
Here is a picture of the context menu:
As you can see, each item in the context menu has a different text.
However, if you look at the elements in Spy, there are no references to the text in the context menu. See attached snapshot.
Is there something I am missing, or is there no way to uniquely identify the elements in this custom context menu, other than image-based?