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 do you create new test sets in td?
how will you check how many members visited the website www.infosys.com?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
What is test object model in quicktest professional?
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
When using descriptive programming?
What is recovery scenario manager? When you go for recovery scenario manager?
when a test case is written how u test using qtp
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
How to carry out bit map check points in QTP
Can any body please tell me the steps of keyword driven framework of QTP.
Which functionalities of QTP used in banking project?
what the difference between shared repository and per action repository?
How you debug your script?
Explain the concept of object repository?