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
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
What is the qtp testing process?
what the difference between shared repository and per action repository?
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
What are the types of object repositories? Which one is you are using?
What are the differences between quicktest professional and winrunner?
Explain process of smart Identification in QTP?
desribe a situation where u faced a stressful situation and how did u cope with it
What are private functions in QTP? How they can be called from the function library?
what type of automation is follwed in the project?
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
What are the different properties of an web object