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 different types of qtp test assets and their extensions?
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
How to check which add-ins are associated with a test in qtp?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
what is supply chain management?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
For which type of project the iterative model is suitable?
There is an excel file of 1 to 100 sheets how you will iterate through it?
whare exactly we have to use functions and sub routain
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
what type of automation is follwed in the project?
Which environments does qtp support?
How qtp recognizes the object?