1. How to capture data from images in QTP and produce them
in Excel sheet
Answer Posted / pravati
x=Browser("").page().image().Getroproperty("alt")
set excel=createobject("excel.application")
excel.application.visible=true
excel.workbooks.add
excel.activeworkbook.saveas ("path.xlsx")
excel.workbooks.open("path".xlsx)
set mysheet=excel.activeworkbook.worksheets("shtid")
mysheet.cells(1,1).value=x
excel.activeworkbook.save
excel.activeworkbook.close
excel.application.Quit
set mysheet=nothing
set excel=nothing
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the quicktest professional (qtp) testing process?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
How software tester can use constants and variables in scripts?
How you can find the absolute value of the number in qtp?
What is business process testing(bpt) in qtp?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
What is reusable action?
What is an expert view and keyword view?
What is the differences between image check point and bit map check point?
What is the extension of qtp local repository?
unique properties of button,edit box, radio button,check box?
Write a script to verify font style and color of a windows object using descriptive programming
How do you open adobe acrobat file in QTP and do some testing on that file ?
How to give a call to another action from one action?
Can we record an application running on a remote machine using qtp?