I've been using Watir to write tools for the ExtJS desktop
environment.
In this; every time anything is done, random IDs are generated, which
makes it 'challenging'.

Luckily, most similar elements (for instance form text entry fields)
are the same.
So I've designed a set of functions which search through the screen
for my chosen element by our field name (say 'Address'), then use a
regex to work back/forward to get the id of the element, which is
often several tags away.
I can then manipulate that ID in the normal fashion.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to