Forum Discussion
ray_mosley
11 years agoFrequent Contributor
Valla,
The Object Spy would always give the full pathanme, but what we wanted was to RECORD and have the recorded script contain the full pathname immediately. That is, what I was getting was something like:
Aliases.topsBill.Close.Click(7,24);
I would then have to manually use the object Spy and replace the Aliases object path with the absolute, like below:
Sys.Process("topsBill").Window("madExceptWndClass", "topsBill.exe", 1).Window("Button", "close application", 4).Click();
The issue was not that I could not get the full path, but how to get TestComplete to record so that I would not have to do the manual part.
The Object Spy would always give the full pathanme, but what we wanted was to RECORD and have the recorded script contain the full pathname immediately. That is, what I was getting was something like:
Aliases.topsBill.Close.Click(7,24);
I would then have to manually use the object Spy and replace the Aliases object path with the absolute, like below:
Sys.Process("topsBill").Window("madExceptWndClass", "topsBill.exe", 1).Window("Button", "close application", 4).Click();
The issue was not that I could not get the full path, but how to get TestComplete to record so that I would not have to do the manual part.