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
tell me QTP standards ?plz
what kind of frame work you used in your last project?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
how to find that tools work well with ur existing system?
Explain different types of action in qtp?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
How do you check ticket cost and ticket number in flight application?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
can u explain relative path architecture framework in qtp?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
Does QTP run in any environment?
How to replay a script in qtp?
How to use parameterization in qtp?
if our qtp vb Script may be Currepted then What we want do?