Posted: 8 May 2018 16:25 EDT Last activity: 6 Nov 2018 20:02 EST
GetClone interrogation issue
I am trying to clone a particular item - more specifically i am trying to see the children/subelements of a clone. I know this can be tricky; however, i found a post on the pdn community that describes how to do this.
It is noted/outlined in the last post how to use a lookup table how to accomplish this.
Some background on what i am trying to do involves interagate a changing number of page thumbnails. Within the thumbnail lies several control that i am trying to access in order to make rotations to the thumbnail.
I am able to interogate successfully as i am able to capture all of the pages i need. During my interogation i checked the methods available via test methods of both the interogated item within my solution found in the object explorer as well as the matched items. When i did a check of the methods on the item within my object explorer i was NOT able to see/invoke Get_all. When i tested the methods by right clicking on a clone in my targets window i WAS able to see get_all. Get_all has the control buttons i need for each page as such it was my hope to loop listloop through this collection and pick out the button i need/perform a click if needed.
Based on the pdn post i was suppose to create a lookup table with the key being the key to the clone, the key to the parent, and in my case the page number i extracted from the inner text (a record for each page). The next step would be to get the clone via the key i stored and use the Get_All method and listloop through and choose the buttons i need.
However, i am unable to do this. I have created my look up table with the specifications i listed above; however, there are a few issues:
1. i do not know how to access the specific clone associated with the key i have stored in my table?
2. my webControl proxy does not have get_All listed as a method as such i am unable to do get the collection of items?
If you are able to acquire the key for your clone, then as soon as you connect the child controls up to the execution path, you should have access to enter the key (you may need to right-click on the object and select Override key) and provide it via automation.
You may need to alter the hierarchy of the adapter such that the controls you need appear beneath your outer control in Object Explorer. GetAll is not a method that you have available at Runtime. You may use a later version of Studio to get access to the new hierarchy interrogation methods, or you can manually move things around in the .os file, although that option is very challenging and not officially supported, so you are on your own there.