TestComplete does not recognize the items of a window in the application I'm testing. To overcome this I added the class name of the window in the text recognition filed under open applications. This works in recognizing the item, but upon recording a script I still do get coordinates along with the ID of the item. Below is the example ;
var XTPDockingPaneTabbedContainer = Aliases["matic"]["wndAfx"]["XTPDockingPaneTabbedContainer1"];
You may just delete coordinates after the script was recorded. In this case TestComplete will perform clicks in the middle of the corresponding control.
Regards, /Alex [Community Hero] ____ [Community Heroes] 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 Heroes] 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 Hero] signature is used with permission by SmartBear Software. https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame ================================
First of all, you are testing a web application, this makes a difference. Besides that, you are accessing a page element by ID (1038), while IDs are dynamic and can change from one test run to another. Most probably, the IDs have changed, and now your code refers to a zero-sized page element, and that is why, it can't click it.
To learn more on the matter, see the following FAQ entry: