I am trying to automate an application in Microsoft Word but the problem that I am facing is that it is recognizing any of the objects of the application. It is recoginizing all the objects as WinObject. Even when I type something in the editor, it does not recognize the keyboard input, only the Enter and Tab key hits. Any help on this would be welcome.
MS Word and all other MS Office applications us painted controls. That means there are no objects that your test application can attach to.
You can, however, use "Office Automation", what used to be called OLE, to get into the application and ask it what it's doing. It's very effective but does have a learning curve.
Some of that has already been done with other test applications so if you don't find enough of what you need in this forum then check out some of the others like Robot. They have some failry extensive librarys for doing this. The language is a bit different but it's not that difficult to convert.
If you're a slave to your free associations, does it automatically become something else?
QTP as such doesn't support MS office applications but still there are workarounds in some cases.Depends on what exactly and to what extent you want to automate the same .[combining low level recording and normal recording wherever possible]
U can always go ahead and create Word objects and use the same .
Sample Code for creating word objects ans using the same :
Set obj = CreateObject("Word.Application")
obj.Quit ' close the application
Set obj = Nothing ' Clear object memory