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

Batch testing in howmany ways u perfrom in QTP

3 Answers   Lehman Brothers,


What are the disadvantages of recording test cases in qtp?

0 Answers  


Hi im new in Testing..can any one plz re-write this code SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe","","C:\Program Files\Mozilla Firefox","open" ----using for loop(for i=0;i<=10;i++ )

2 Answers  


What is accessibility check point?

0 Answers  


What is XML checkpoint in QTP. How we can use in Web Based application

2 Answers   LinkEdge,






Maximum synchronizing time out in QTP

3 Answers   Kanbay,


How to capture screen shots when an error occurs?

5 Answers   EDS,


What is Virtual Object? Plz Explain me with an example?

2 Answers   Ordain Solutions,


any body can you help me what is the script to automate an comand promt

0 Answers  


how can i pass parameters into function?

4 Answers   Livetek,


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

0 Answers  


When u ll use Record Button in QTP?Is VB script is Mandatory in QTP? What is Meaning of Frame("v1")?

1 Answers   TCS,


Categories