[Wtr-general] Question from a newbie

Michael Bolton mb at michaelbolton.net
Fri Oct 20 20:04:57 EDT 2006


>I just downloaded Watir to help automate some tests. I've found it pretty 
intuitive and easy to learn but I'm having trouble getting it to fill out a 
text field on a form. The problem is that there are two text fields with the

same id and same name (all other attributes are equal as well).

Congratulations:  you've found a bug.  There should not be two text fields
with the same ID and the same name on the same page.  Ask the developers to
fix the bug.  If you get pushback, tell them (or the project manager) that
the page as current constructed interferes with testability.  If you get
pushback, then use (:index, [some number]) to locate the appropriate
element.

---Michael B.




More information about the Wtr-general mailing list