Is it possible for QTP to capture the objects in word
document.If so please give me the code.Thank you.
Answer Posted / 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 |
Post New Answer View All Answers
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
How many types of recording modes in qtp?
What is the recovery scenario in qtp?
What is the purpose of loading qtp add-ins?
What are the recording modes in qtp?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
Where is the Bitmap checkpoint information stored?
What is keyword driven framework?
What is synchronization point in QTP?
Explain the Different types of QTP test assets and their extensions?
in a web page How to check and display a particular word from a paragraph?
What is the basic concept of quicktest professional (qtp)?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
What are the 3 main stages involved in testing with qtp?
What are the key points to create a framework in QTP for oracle forms?