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
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
How to use actions in qtp ?
Write a script to customize the test results in PDF and HTML format.
In qtp, how you can get the last character from a string?
Explain types of output values?
Have you used xml check point in your project? How?
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
What are the key elements available in test result window?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
Explain in brief about the quicktest professional automation object model?
What are the automation metrice in your project?
Explain different types of action in qtp?
what is the difference between IE & Netscape in web testing on a log in page