Forum Discussion
It's a matter of efficiency more than anything. So to create a reliable test case I need to go and create a function that doesn't add value to my test, but calculates coordinates on where to click...
Happy to have this kind of challenges from time to time, but it'd be good to have support for this kind of scenarios too.
Thanks again and I'll try and post the function so we can share the solution.
"I don't mind having to do it, but the tool, TestComplete in this case, should be able to do it by itself when needed."
Which is true, and fair enough.
But the test tool can only get the information available to it. And controls can only accept the methods allowable to them. If something (in my case, a Delphi "cell" object within a grid) does not accept click as a method, then it doesn't. Not much you, I, or TestComplete can do about it. Throw a control an unknown method, and it'll throw you an error back.
Same with properties. If a control does not expose certain properties, then there isn't much you can do about.
It's a hassle. But sometimes you need to doo calcs like that. I spoke to our Delphi devs and even they have to calculate relative co-ordinates and offsets to activate certain event triggers in parent objects and so on.
Still, as you say, keeps life interesting! :)