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


Please Help Members By Posting Answers For Below Questions

What are main panes available in qtp test browser?

539


What is qtpro? What is quick test pro?

564


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1573


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

611


How does quicktest professional identifies the object in the application?

555






Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2103


For which type of projects the iterative model is not suitable?

1435


what is error and fault in terms of software quality?

1458


Explain types of descriptive programming?

591


How u will do versioning in QTP?

1462


How can you handle exceptions in qtp?

534


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

632


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

2314


Define Canvas view of UFT?

620


Can any suggest me what is exposure testing?

1379