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 are the common defects found in your project? (in qtp interview)
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
How to check which add-ins are associated with a test in qtp?
What are the differences between qtp and winrunner?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Did QTP prove efficient for your project? Yes or No, explain?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
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
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
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
give me the code to save all messages of inbox of gmail into a folder and notepad
Does quicktest professional (qtp) is unicode compatible?
Which functionalities of QTP used in banking project? pls any say answer?