Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP with MS Word
#1
Solved: 10 Years, 9 Months, 1 Week ago
I am trying to access Word, and then go to the "View" Menu on the menubar.

QTP is having a hard time finding the right menu item, as it is probably looking for a screen position. This is the QTP generated code:

Code:
SystemUtil.Run "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE","","",""
WinComboBox("ComboBox").Select 0
Window("Microsoft Word").WinObject("NetUIHWND").Click 717,45
Window("Microsoft Word").WinObject("Microsoft Word Document").Click 242,173

I am getting error right from the 2nd line for WinComboBox. Could you let me know how I can have QTP choose the correct menu item?
Really appreciate your help!
Reply


Messages In This Thread
QTP with MS Word - by rahul29 - 01-20-2012, 09:35 PM
RE: QTP with MS Word - by sonali shinde - 01-21-2012, 02:40 PM
RE: QTP with MS Word - by rahul29 - 01-23-2012, 06:34 AM
RE: QTP with MS Word - by DiptiDeshpande - 05-29-2012, 02:47 AM
RE: QTP with MS Word - by ravs@788 - 06-02-2012, 04:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT Word automation wannel 1 2,160 10-31-2016, 06:59 PM
Last Post: wannel
  Can QTP AOM identify word documents that are already opened anil2u 2 4,098 09-05-2013, 12:45 PM
Last Post: anil2u
  Search for a word in excel string QAVA 6 8,956 11-23-2012, 11:17 AM
Last Post: vinod123
  Search for a word in string QAVA 5 4,216 11-22-2012, 04:50 PM
Last Post: Saleel Prabhu
  DP for identifying objects in MS Word rahul29 0 2,291 01-31-2012, 08:44 PM
Last Post: rahul29

Forum Jump:


Users browsing this thread: 1 Guest(s)