Hi, I want to retrieve the cell data in the WebTable.
For that I have defined a new test object under the browser
and have given html tag and text as the test object
properties. But while I try to identify it it says 'Object
description is not unique'. I tried adding innerhtml,
outerhtml, innertext and outertext along with the ordinal
identifiers; but no use. What more properties need to be
added to identify it?
Also I want to enable smart identification for this object
but the field is disabled in the object repository for this
object alone(In QTP tools->object identification the enable
smart identification checkbox is enabled). How do I enable
it?

Answer Posted / tanuj

For that 1st u defined the web table in OR then
u try this Query-
text=Browser().page().webtable().getcelldata(row,column)

in row,column u feed which cell data u want.ur cell data store in text.which r checked by u through the msgbox or orthers....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is test object model in quicktest professional?

822


In what occasion we can specify global sheet and action sheet?

770


What are the advantages of Object Repository?

816


What is debugging? How you debug your script?

820


How you can make an action as re-usable action?

874


How to run a test using quicktest professional?

723


How to handle dynamic objects in quicktest professional (qtp)?

736


Both static and dynamic arrays are handled by the vb script. Is it true?

799


What is different command used in command Prompt while using QTP?

1989


what is the difference between built-i function and In-built function?

1888


How can you write the scripts that operate on different objects depending on run-time information?

2345


What are the differences between quicktest professional (qtp) and winrunner?

789


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1542


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1694


How do we handle run-time errors?

792