Duplicate tree nodes
Posted: Thu Jan 16, 2020 1:00 pm
Hi,
Im trying to find a container under a main form, which inturn contains other child forms to work on.
But since the main form appears as duplicates and only one of them displays the proper hierarchy, the code fails to find elements using the ranorex repository definition. Ranorex chooses the first of duplicate and says that the container doesnot exists.
As i have many such scenarios , didnt want to use index to choose the elements and wanted to choose the right hierarchy form and/or using the windows properties. This was working fine until sometime ago, but only recently the main form appears twice when looking through ranorex spy and the code fails.
i have checked through windows sdk tool 'inspect' just to make sure there are no duplicates in the AUT. Please let me know how to chose the right element without using index.
Attached snapshot.
From Flight handler is the duplicate form with similar properties but doesn't contain the correct hierarchy of elements.
Frmmain is the correct form which contains the MDIClient container, and the child forms will be under this container.
Im trying to find a container under a main form, which inturn contains other child forms to work on.
But since the main form appears as duplicates and only one of them displays the proper hierarchy, the code fails to find elements using the ranorex repository definition. Ranorex chooses the first of duplicate and says that the container doesnot exists.
As i have many such scenarios , didnt want to use index to choose the elements and wanted to choose the right hierarchy form and/or using the windows properties. This was working fine until sometime ago, but only recently the main form appears twice when looking through ranorex spy and the code fails.
i have checked through windows sdk tool 'inspect' just to make sure there are no duplicates in the AUT. Please let me know how to chose the right element without using index.
Attached snapshot.
From Flight handler is the duplicate form with similar properties but doesn't contain the correct hierarchy of elements.
Frmmain is the correct form which contains the MDIClient container, and the child forms will be under this container.