[Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE
Jason
forum-watir-users at openqa.org
Mon Jul 2 11:27:29 EDT 2007
> > ie.text_field(:after?, ie.label(:for, "confirmPassword")).flash
> What's :for? It's not part of Watir. Have you tried by :name and/or :id?
Fair point.
I originally tried it from this page: http://wiki.openqa.org/display/WTR/Methods+supported+by+Element where it states:
> label <label> tags (including "for" attribute)
Simply because it was the only available attribute for this field. No ID, no NAME, no CLASS. Nothing.
And it appeared to work, on it's own:
ie.label(:for, "confirmPassword").flash
certainly finds the label with this attribute.
More information about the Wtr-general
mailing list