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
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 |
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 |
we are submitting data one form to another form.defaultly it is time period set as 5sec. but it is taken 15sec what to do
Is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?
How to handle dynamic objects in QTP?
what is the extension for QTP files?
16 Answers American Solutions,
Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....
What is Environment Variable and when we apply this in QTP?
How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?
How can i open a file in Textpad and replace a string with another using QTP
what type of automation is follwed in the project?
Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.
in a web page How to check and display a particular word from a paragraph?
how to test background color and dynamic images during runtime