Posts: 9
Threads: 2
Joined: Jul 2010
Reputation:
0
08-26-2010, 12:50 AM
Hi,
I've got a list of objects on a page and they are all defined as "chkSourceDbCd". How do I differentiate between these objects in QTP. I would like to run though the list one by one.
Thanks for the assistance.
Bill
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
08-26-2010, 02:40 AM
HI SRA,
what the enviroment of your app and could you pls share the Object Spy and the application screenshot, so that we can give some solution.
Thanks,
SUpputuri
Posts: 9
Threads: 2
Joined: Jul 2010
Reputation:
0
08-26-2010, 06:46 PM
Hi - please find the contents of the Object Spy in the attachment. Sorry but this is a gov't system and I can't provide a screen shot. I did try using the "value" property as each item in the list has a different one but to no avail. I believe an Index could be a better bet but this value is not apparent. I think the HTML may read the value of the index and not the value from the Object Spy. Probably from 1 to 20.
Thanks
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
08-27-2010, 12:09 AM
Hi SRA,
You can use the childobject property and get the number of child objects which will meet your description in the page and then you perform the operations in the desired child item.
Let me know if you need any more informaiton.
Thanks,
SUpputuri
Posts: 9
Threads: 2
Joined: Jul 2010
Reputation:
0
08-27-2010, 12:55 AM
Do you have some sample code to go along with your recommendation?
Thanks,
Bill