Is it possible for QTP to capture the objects in word
document.If so please give me the code.Thank you.

Answers were Sorted based on User's Feedback



Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank..

Answer / nath .t

Dim Word, Doc, Uncorrected, Corrected
Const wdDialogToolsSpellingAndGrammar = 828
Const wdDoNotSaveChanges = 0

Uncorrected = "Helllo world!"
Set Word = CreateObject("Word.Application")
Set Doc = Word.Documents.Add
Word.Selection.Text = Uncorrected
Word.Dialogs(wdDialogToolsSpellingAndGrammar).Show

If Len(Word.Selection.Text) <> 1 Then
Corrected = Word.Selection.Text
Else
Corrected = Uncorrected
End If
msgbox corrected
Doc.Close wdDoNotSaveChanges
Word.Quit

Is This Answer Correct ?    3 Yes 1 No

Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank..

Answer / anu

It is possible to capture objects in Word Document.
Tables will be there and few will be read as paragraph

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is the difference between functional spec. and Business requirement specification?

5 Answers  


What is text check point and text area check point?

0 Answers  


Why is Client side image is preferred over server side image?

0 Answers  


Suppose i have given 10 test cases all the test cases should be automated?

3 Answers   NTT Data,


In qtp, how you can get the last character from a string?

0 Answers  






Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

0 Answers   Infosys,


how to test Web application using QTP software

4 Answers   BITS,


What is the concept of firewalls?

2 Answers   CTS,


I learned all the objects of my application in object repository thru English Language. now i want to use same object repository for other languages(French,Dutuch and Chinese)

1 Answers   TCS, Wipro,


Please guide me release notes of Automation once scripts are completed

0 Answers  


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

0 Answers  


How to release all resources file from the QTP?

0 Answers   Tech Mahindra,


Categories