HI How to take screenshots of a Webpage and saving it in a
external word document using QTP.
Answer Posted / jegan
''Capture Currently display web page
Browser(objBrow).Page(objPag).CaptureBitmap "C:\Test.bmp",True
''Create word application
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
objShape.AddPicture ("C:\Test" & ".bmp ")
objWord.Selection.TypeParagraph()
''Save Word File
objDoc.saveas("C:\Test.doc")
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
How may types of defects identify application or your currently working application?pls give me answer..
How can you handle exceptions in qtp?
how to disable the pop ups through QTP using a script
How to handle dynamic objects in quicktest professional (qtp)?
Explain step generator in qtp?
How to create a standard checkpoint ?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
How to use Environment parameterization? Explain with an example.
how to test use the quality control .how to verify the image verification
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
What is Port testing. Whhen will you perform?
Describe the differences between functions and actions in UFT?
What are the methods used in UFT to handle exceptions or run-time errors?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.