Help with ID tags that are autogenerated in my webpage

Applying eValid to AJAX applications that require advanced DOM-based methods.

Help with ID tags that are autogenerated in my webpage

Postby MarkLee » Wed Apr 09, 2014 10:22 am

Morning.

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.

Thanks
MarkLee
 
Posts: 1
Joined: Wed Apr 02, 2014 2:35 pm

Re: Help with ID tags that are autogenerated in my webpage

Postby eValid » Thu Apr 10, 2014 12:26 pm

MarkLee wrote:Morning.

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.

Thanks


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
eValid
 
Posts: 2034
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons