I am using the FindAll function to drill down to find checkboxes in our App because the app seems to change the name of one of the layers before it gets to them. It changes the table number from Table(4) to Table(6) and sometimes Table(5). It is unpredictable which table the app will put the checkboxes. I try the FindAll method and use start the search with the main process. It works if I use the object browser before I run the routine but when I start the project from the beginning, it only finds one of the checkboxes (Select All) and that is it. With it still open, I use the Object Browser to see if they are available and I can see them. After I do that, I run just the routine again and it finds all of them. I need to be able to get a handle on those checkboxes to be able to test them. Has anybody got any ideas?
I used the routine found in the Help file to FindAll, and I also used the LogAppStructure routine to see if I could "force" TC7 to "see" them. Nothing's worked so far.
Thanks anyway Antoney but that didn't work either. It seems that TC can't see anything below a certain level unless I refresh what I'm trying to do manually while the Object Browser is open but I can't automate that while the app is running. Does anyone know of a way to simulate this action or how to make TC see these things that I know exist?
Actually, only if I use the Finder tool or the Point to the object button can I find them when I hit a breakpoint, the script will be able to find the needed checkboxes. Is there a way to get TC to do this without breaking to force it?
BTW, here's something peculiar. If I run the script without setting a breakpoint, it never finds Table(5) or Table(6), it only goes up to Table(4) in the drill-down. No matter how many runs I do, this is the behavior. But if I set a breakpoint and click on the Object Browser Tab, the Object Browser now sees Table(5) and Table(6) (Where my checkboxes are) and FindAllChildren can capture them as designed but this only happens after I set the breakpoint. I have even put in a delay of 15 seconds (15000) and nothing.