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
How you can decide which type of object repository you have to use?
When to use shared and local object repository?
What is the difference in testing a client-server application and a web application?
What is action split and the purpose of using this in qtp?
What is standalone database?
How many types of recording modes in qtp? Describe each type with an example where we use them?
How QTP support all types of applications (platforms)?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Explain the terms test and business component?
What is the descriptive programming?
Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance
Explain the checkpoint in qtp?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
What is system testing and what are the different types of tests you perform in system testing?
I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance