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
What are main panes available in qtp test browser?
What is qtpro? What is quick test pro?
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
How does quicktest professional identifies the object in the application?
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.
For which type of projects the iterative model is not suitable?
what is error and fault in terms of software quality?
Explain types of descriptive programming?
How u will do versioning in QTP?
How can you handle exceptions in qtp?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
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
Define Canvas view of UFT?
Can any suggest me what is exposure testing?