Forum Discussion
balathavamani
10 years agoOccasional Contributor
Hi venkata yadlapalli,
Hope this might helpfull for you . Check and revert back.
1. Store the object name in a variable (Get object name via object spy)
var a =(Sys["Process"]("Testedapp")["Object"]("HwndSource: Window", "Window"));
2. By using Regions in Testcomplete we can save the image
Regions["AddPicture"](a, "Image");
Thanks
Bala Thavamani
Hope this might helpfull for you . Check and revert back.
1. Store the object name in a variable (Get object name via object spy)
var a =(Sys["Process"]("Testedapp")["Object"]("HwndSource: Window", "Window"));
2. By using Regions in Testcomplete we can save the image
Regions["AddPicture"](a, "Image");
Thanks
Bala Thavamani
- vjecov8 years agoOccasional Contributor
How about next object, how would you write it in a Descriptive way?
var myButton = AddTheDescriptiveObjectWithPropertiesAndValues;
Next are object's properties and values (I don't want to use the mapped object):
FullName: Sys.Process("calc").Window("CalcFrame", "Calculator", 1).Window("CalcFrame", "", 1).Window("#32770", "", 2).Window("Button", "", 11);
Name: Window("Button", "", 11)
RecordClass: Button
WndClass: Button
Index: 11
I am looking for something like this:
var calcWindow = (Sys["Process"]("calc")["Window"]("CalcFrame:Calculator", 1)["Window"]("CalcFrame:", 1)["Window"]("#32770:", 2); var myBtn = calcWindow.["Window"]("RecordClass:Button", "WndClass:Button", "Name:Window(\"Button\", \"\", + caption)", "Index:11"); myBtn.ClickButton();
I know something is wrong in the code above but cannot figure it out, please help.