Silktest is not clicking on the child link. At first I was recieving an error stating that the mouse coordinates are off the screen, but I used helpful info. from these forums to eliminate that. Next I also tried to verify the name of the object by recording the action and it says "Unable to get window properties." I am attaching the screenshot. I am trying to make silktest click on the second link that is expanded: (57605)Amber Master Fund Cayman SPC
Any suggestions? Thanks in advance.
I have included the clicks starting from clicking on the parent link and then the attempt to click on the child link. I have to doubleclick to expand the parent link and then when I try it for the child link, it does not work. I will also look into treeview help.
I tried putting in the sleep statements and replacing code with "....TypeKeys("<Enter>") and it still doesn't work. I found a temporary solution to make silktest click on the child link. I added this IFSCollateralManagementSyst.Main.MultiClick (2,1, 150, 80) so that it can click on the coordinates where the child link is locate. It may not be the best solution, but it does the job.
In my experience, for these cases, this is the best approach.
Expand the elements in the page as much as possible, and then record the page. This should give you an idea of what the structure is. If these links are dynamically generated (which is probably the case), you are going to have to create generic declarations or encapsulate it in a table or something.
After you've done this, everytime you expand (or any change is made in the page, without the page is reloaded, call the page.FlushCache() method. This will flush the current reading of the page, and then it will read once more.