Getting multiple identical test objects
I have a java gui that spawns multiple smaller JSplitPanes. They all have the same information, with the exception of a dynamic id. Therefore, I can't grab them and put them in a list based on a specific property. I used getMappableChildren and it only pulls one object for all of the windows, whose componentCount property is the same number of splitPlanes. That is, it sees all of the windows as one testObject so I can't index them. I tried to do a find for rootTestObject, but since I'm using an array of testObjects that's not working.
Can anyone point me in the right direction?
Thanks in advance.
[ 12-01-2005, 02:17 PM: Message edited by: anna_c ]
Re: Getting multiple identical test objects
getMappapbleChildren only gets the children one level below. It is likely that your splitpanes are 'grandchildren' or lower. Do a search here for 'recursive' or 'recursively' or 'getmappablechildren' to find code examples on how to get all objects below a specified parent.