Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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.

2152


How to use actions in qtp ?

999


Write a script to customize the test results in PDF and HTML format.

2506


In qtp, how you can get the last character from a string?

953


Explain types of output values?

969


Have you used xml check point in your project? How?

941


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1896


What are the key elements available in test result window?

1101


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

2044


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1884


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

6071


Explain in brief about the quicktest professional automation object model?

896


What are the automation metrice in your project?

2233


Explain different types of action in qtp?

1037


what is the difference between IE & Netscape in web testing on a log in page

2253