Been a lurker for a while. My first post.
What do I do if the ID tags in my page are all auto-generated?
Regular DOM manipulation tricks we've tried don't seem to work.
Hey MarkLee, thanks for posting.
Indeed, that can be tough.
Dynamically assigning ID tags to page elements sounds like a great idea...until it comes time to test the page.
But you don't get to control that, do we.
The solution is to study the page with the PageMap and figure out a pivot point for the action you plan to take that does NOT involve finding an ID tag.
The eValid PageMap facility gives you a direct look into the document object model (DOM) of the page. Here's how the PageMap GUI works: http://www.e-Valid.com/Products/Documen ... p.gui.html
You might use an image (search for the name of the file that displays an image), or a position in a table (five page elements down from the upper left corner of the table), or for a text that you KNOW will be in the HTML for evalid to find (like, "Click OK to Accept").
What you pick depends on the page and on doing some experimentation. But once you find a friendly pivot point the search is probably done forever, and you scripts become even more invulnerable to unimportant changes.
-- eValid Support