01-21-2012, 02:40 PM
Hello Rahul
1st when u open qtp and write script for access to word.
you must add object repository then run below script.
hope so its working.
Thanks
Sonali.
1st when u open qtp and write script for access to word.
you must add object repository then run below script.
hope so its working.
Code:
SystemUtil.Run "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE","","",""
Window("Microsoft Word").Activate
Window("Microsoft Word").WinObject("Menu Bar").Click 93,13
Window("Microsoft Word").Window("View").Click 22,12
Thanks
Sonali.