Browser("MicClass:=Browser").Page("MicClass:=Page" ).WebList("name:=children.*","TagName:=HTML","sour ceIndex:=315").Select "#" &DataTable("Children")
in Children field I have 2 values 2 & 0
The test run ok for the first 2 iterations but it always fail the 3rd iteration having "Cannot identify the item (for object "WebList"). Verify that this item's properties match an item currently displayed in your application."
if I continue the test -- run from step it works and continue without the error so I put wait 2 , however it doesn't solve the problem.
don't use sourceIndex:=315 because it means the exact location in the DOM of the page and if even a small text is changed in the page the sourceIndex may change. Try to use some other properties using DP.
The problem is not in the properties
I used one single property ("name:=children.*")
same thing , it run for 2 iterations the third one it fail, so QTP is able to identify the object 2 times but it failed in the thired time, I checked the object's properities in the third time ...same !
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".