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

Explain calling sub procedure.

0 Answers  


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

0 Answers  


If the web applicatoin takes navigation time above 2 hours to dispaly next Web page then how can we synchronize the QTP with Appilication Under Test

4 Answers   TCS,


what is vmodel?advantages and disadvantages of vmodel?

3 Answers   AZTEC, scintel,


How to start recording using quicktest professional?

0 Answers  






What is the entry criteria and exit criteria for your test automation

2 Answers   HP, Virtusa,


How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar

1 Answers  


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" ar = Window("Flight Reservation").WinComboBox("Fly From:").GetContent your actual value is : that shows data in combo box how can u test the both data is correct or not by using split function

1 Answers   FIS,


In what occasion we can specify global sheet and action sheet?

0 Answers  


what is clean sweep?

0 Answers  


What are objects? how do you select the unknow object?

3 Answers  


How to run scripts 1,29,3,5,7,2 scripts using test batch runner in QTP.... Ie...I wanted to run scripts not in an order 1,2,3,4,5...like that How it is possible using test batch runner... I dont want hardcoded script

0 Answers   IBM,


Categories