How to capture data from images in QTP and produce them in
Excel sheet ? please ans...

Answer Posted / pravati

text=Browser().page().image().getroproperty("alt")
msgbox text
set excel=createobject("excel.application")
excel.application.visible=true
excel.workbooks.open("path")
set mysheet=excel.Activeworkbook.worksheets("sheet2")
mysheet.cells(1,1)=text
excel.Quit
set excel=nothing
set mysheet=nothing

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.

1378


What is the syntax for how to call one script from another?

549


How to create Reusable and Multiple Actions?

1701


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1517


how do i know how to use tools

1441






How would you directly trigger javascript in a test?

1465


For which type of project the iterative model is suitable?

1372


How to import a test case present in ".xls" file to TD under a Test set?

733


Where we can use the analog mode and where we can use the low – level mode?

562


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3433


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1675


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

606


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1498


Can we record using all the modes in a single script? Explanation with example is appreciated

1378


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

627