getting error The window size is (0, 0);
The error means what it says: for some reason the link3 object has zero size and thus cannot be clicked.
You need to find this object in the Object Browser and analyze why its size is zero. There may be different reasons for this. For example, the object may be hovered over by some other UI element which end-user should interact with and the link is used by some script code, but not directly by end-user. Or the link may be within some area that is hidden (by setting its size to zero). After you will figure-out why the link3 element has zero size, you, most probably, will need to analyze the namemapping done automatically by TestComplete for the link3 object and correct it so that the corrected mapping points to the correct (visible) UI element.
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
One possible reason for the zero size could be timing.... if the action prior requires some additional processing (server side or client side) for the link3 to actually be rendered on screen, then the automation could be attempting to click on the link before it's actually ready to be clicked. I'd look at adding some checks to verify that the object is available to be clicked... a "Wait" method called on the page or a WaitProperty on link3 to wait for the height/width to be non-zero and a "throw" call if the property doesn't render within a particular set time frame.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider