HI How to take screenshots of a Webpage and saving it in a
external word document using QTP.
Answer Posted / sumit
Try this Jkarurosu:Use Movedown method
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
''Add Picture to word file
fname="C:UsersPublicPicturesSample PicturesKoala.jpg"
fname2="C:UsersPublicPicturesSample PicturesTulips.jpg"
objShape.AddPicture (fname)
objWord.Selection.MoveDown 1,0
objWord.Selection.TypeParagraph()
objShape.AddPicture (fname2)
objWord.Selection.MoveDown 1,0
objWord.Selection.TypeParagraph()
''Save Word File
objDoc.saveas("C:UserssunshineDesktopTest.docx")
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the difference between run time object and test object in QTP?
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution
Suggest and Define a solution for an application whose objects are not recognized by UFT?
What are the technics follow in writing VB script?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
How many lines of code in each script of QTP?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
What are table and db checkpoints?
what is the difference between the modular framework and datadriven frame work
How QTP support all types of applications (platforms)?
How many tabs are available in debug viewer pane?
What are the different ways to invoke an application using QTP?
how to write xml output check point bu useing descriptive programing .means without useing output check point
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?