Bugs item #2299, was opened at 2005-08-24 11:32
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=487&aid=2299&group_id=104
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Add ability to access a Label by its text
Initial Comment:
I would like to access a Label by its text. I know what the text is supposed
to be, but I don't know what its index, id, or "for" (the index of the object
the label's for) is.
For example, here's what I have to do now to select an option in a select_list
when I know the select_list's label, but not its id:
ie.labels.each do |l|
if l.text.include?("the label's text")
ie.select_list(:id, l.for).select("option text")
break
end
end
What I'd like to be able to do is something like this:
ie.select_list(:id, ie.label(:text, "the label's text").for).select("option
text")
Thanks,
Darrel Boyt
Systems Analyst
Anteon Corporation
Montgomery, Alabama
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=487&aid=2299&group_id=104
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general