Forum Discussion
- saurabh1484ContributorHi Farhan,
Have you tried aqObject.GetPropertyValue function. Below is the sample code from TestComplete. I hope this is what you are asking for.function GettingPropertyValue()
{
// Launches NOTEPAD.EXE with the C:\Hello.txt command line parameter
TestedApps.notepad.Run();
// Specifies an object that corresponds
// to NOTEPAD's window
var wndNotepad = Sys.Process("notepad").Window("Notepad", "Hello - Notepad", 1);
var Obj = wndNotepad.Window("Edit", "", 1);
var PropValue = aqObject.GetPropertyValue(Obj, "wText");
// Posts the value of the specified property to the test log
Log.Message(PropValue);
// Closes NOTEPAD's window
aqObject.CallMethod(wndNotepad, "Close");
}