Micro Focus QTP (UFT) Forums
mfc grid object is not identified - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: mfc grid object is not identified (/Thread-mfc-grid-object-is-not-identified)



MFC grid object is not identified - excellentpawan123 - 05-23-2014

I am testing a C++ application which uses mfc grid for tables and want to retrieve its values in a variable. But object spy identifies it like winobject please suggest how to do.....
snap is attached.


mfc grid object is not identified - excellentpawan123 - 05-26-2014

I am automating C++ application and it uses mfc grid. Please help me, how can i extract cell value with descriptive programming. Object spy identifies it as winobject.


RE: mfc grid object is not identified - Tarik Sheth - 05-30-2014

Did you tried getting the child objects collection and then getting the cell value.
Code:
Set oDesc = Description.Create
Set colObject = ParentObject.ChildObjects(oDesc)
Set colObject = Desktop.ChildObjects(oDesc)



RE: mfc grid object is not identified - excellentpawan123 - 05-31-2014

Hi Tarik thanks for reply i am beginner and don't know how to get cell value