Forum Discussion

greendarkness's avatar
greendarkness
Contributor
15 years ago

Duplicate Objects Appear in Tree

I'm testing a web application. There are buttons displayed in a container on the left. The mapping for this uses the idStr which only this container has. When running the tests I encounter object not found errors, when debugging I noticed that the ctl00_mainLeftUpdatePanel container had two entries in the object browser. The source code of the page does not have two. The only differences I can see are the dynamic id, height, width, and objectidentifier is blank for the fake one. I've set the name mapping to use conditional mode now with width not equal to zero to get the correct object. Now when I run the test it sometimes works, but normally errors out still and when seeing where the name mapping points, it continues to point to the object with zero width. The fake object doesn't point to the name mapping, when I check the real object it's name mapping field is filled in correctly. I really have no idea what is going on.

11 Replies