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
what is the difference between modular framework & datadriven framework
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
Does QTP record on Objects created on XWindows Environment?
What are output values and why they are used ?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
Give the syntax to import/export xls into qtp.
Sql questions to find second max salary and how to use joins
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
How you can replace string in qtp?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
How to test the login page in different ways in automation testing and i need code?
What is the Difference between test object and run time object?
What is action split and the purpose of using this in qtp?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?