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
How many scripts did you have?
What are the various types of Actions in UFT?
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
How many types of parameters are there?
What are table and db checkpoints?
What is Distributed testing? How does UFT support it?
How many ways we can parameterize data in quicktest professional (qtp)?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What is the purpose of loading qtp add-ins?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
Explain quicktest professional testing process?
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?
UFT 12.02 which ALM version will support
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
What is object spy in quicktest professional (qtp)?