HI How to take screenshots of a Webpage and saving it in a
external word document using QTP.
Answer Posted / apurva
I am using the above code only.
''Create word application first
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection
Set objRang = objDoc.Range()
Set objShape = objDoc.inlineShapes
"Capture Currently display web page
Browser(objBrow).Page(objPag).CaptureBitmap "C:\Test.bmp",True
''Add Picture to word file
objShape.AddPicture ("C:\Test" & ".bmp ")
"Capture Currently display web page
Browser(objBrow).Page(objPag).CaptureBitmap "C:\Test.bmp",True
''Save Word File
objDoc.saveas("C:\Test.doc")
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
how can i call function (which has link with excell sheet at a remote location) within another function
whare exactly we have to use functions and sub routain
What is difference between Recording time object identification and Run time (Execution) time.
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
How can i check items sorted or not in a weblist ? Give me the script for this...
what QTP Options do you know?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
Do you know how to connect database? Can you tell me the procedures?
Is it possible to switch between recording modes during a test creation?
Can any one send me the QTP Basic Coding Samples?
banking domain description for software tester for interview
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
How the exception handling can be done using quicktest professional?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief