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
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
How to start recording using quicktest professional (qtp)?
Explain the concept of object repository and how qtp recognises objects?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
What is difference in global and action sheet in qtp?
What is the use of text output value in quicktest professional (qtp)?
What is the file extension of the code file and object repository file in QTP?
Differentiate the type of test cases which can be automated and which cannot be automated?
How will you handle java tree in qtp?
Hi How to retrieve data from web element line by line?
how will you check how many members visited the website www.infosys.com?
What is the synchronization point in qtp?
How to use setroproperty?