Micro Focus QTP (UFT) Forums
DP for identifying objects in MS Word - 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: DP for identifying objects in MS Word (/Thread-DP-for-identifying-objects-in-MS-Word)



DP for identifying objects in MS Word - rahul29 - 01-31-2012

I am unable to make MS Word to recognise the Menu bar, and the toolbar items. I already added MS Word objects into OR. But still on recording, all objects are still being displayed as NetUIHWND. Is there any way to have QTP understand this is the File Menu, atleast by descriptive programming.
I already tried this:
Code:
Window("Microsoft Word").Activate
Window("Microsoft Word").WinObject("Menu Bar").Click 24,9
Window("Microsoft Word").Window("File").Click 23,14

I was getting object not found issue.

Since this was not working, I am also looking to use the Hotkeys. If you have any input on Hotkeys, and what code to give, that would be helpful.
I am using QTP 11 on MS Word 2007. If you need more details, please let me know. Any help would be greatly appreciated in solving this. Thanks.