divashm
15 years agoOccasional Contributor
How to eliminate coordinates
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"];
MTopicPageBase = XTPDockingPaneTabbedContainer["pageOperations"]["MTopicPageBase"];
XTPDockingPaneTabbedContainer["Click"](118, 31);
MTopicPageBase["Click"](61, 43);
MTopicPageBase["Create_new_part"]["Click"](67, 5);
MTopicPageBase["New_part_name"]["Click"](61, 11);
MTopicPageBase["Remove_original"]["Click"](49, 7);
MTopicPageBase["b"]["Click"](5, 6);
MTopicPageBase["b1"]["Click"](4, 4);
How do i remove the coordinates and still be able to run the script succesfully?
var XTPDockingPaneTabbedContainer = Aliases["matic"]["wndAfx"]["XTPDockingPaneTabbedContainer1"];
MTopicPageBase = XTPDockingPaneTabbedContainer["pageOperations"]["MTopicPageBase"];
XTPDockingPaneTabbedContainer["Click"](118, 31);
MTopicPageBase["Click"](61, 43);
MTopicPageBase["Create_new_part"]["Click"](67, 5);
MTopicPageBase["New_part_name"]["Click"](61, 11);
MTopicPageBase["Remove_original"]["Click"](49, 7);
MTopicPageBase["b"]["Click"](5, 6);
MTopicPageBase["b1"]["Click"](4, 4);
How do i remove the coordinates and still be able to run the script succesfully?